Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2") translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000882/0.000882, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008167/0.0008162, allocations: 100.3 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000416/0.0004164, allocations: 8 kB / 327.5 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2952, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02989/0.3252, allocations: 34.91 MB / 410 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0277/0.3529, allocations: 28.16 MB / 438.1 MB, free: 1.508 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006776/0.3537, allocations: 4 kB / 438.2 MB, free: 1.504 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001123/0.3548, allocations: 322.3 kB / 438.5 MB, free: 1.188 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001252/0.3561, allocations: 485.4 kB / 438.9 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01373/0.3698, allocations: 3.839 MB / 442.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002479/0.3723, allocations: 1.702 MB / 444.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003504/0.3727, allocations: 120.4 kB / 444.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.3738, allocations: 470.3 kB / 445.1 MB, free: 10.57 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.3743, allocations: 422.3 kB / 445.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.349e-05/0.3744, allocations: 24 kB / 445.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07496/0.4494, allocations: 51.75 MB / 497.2 MB, free: 6.344 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003182/0.4498, allocations: 115.5 kB / 497.4 MB, free: 6.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005299/0.4503, allocations: 304.7 kB / 497.7 MB, free: 5.926 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2295/0.6799, allocations: 13.87 MB / 0.4995 GB, free: 50.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.6799, allocations: 0 / 0.4995 GB, free: 50.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6799, allocations: 0.5625 kB / 0.4995 GB, free: 50.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.68, allocations: 0 / 0.4995 GB, free: 50.66 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.009987/0.6899, allocations: 1.314 MB / 0.5008 GB, free: 49.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.69, allocations: 9 kB / 0.5008 GB, free: 49.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007805/0.6908, allocations: 93.88 kB / 0.5009 GB, free: 49.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.6913, allocations: 383.3 kB / 0.5013 GB, free: 49.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.637e-05/0.6914, allocations: 34.8 kB / 0.5013 GB, free: 49.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.214e-05/0.6915, allocations: 50.62 kB / 0.5014 GB, free: 49.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.6927, allocations: 0.6168 MB / 0.502 GB, free: 49.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.254e-05/0.6927, allocations: 9.469 kB / 0.502 GB, free: 49.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.205e-05/0.6927, allocations: 20.38 kB / 0.502 GB, free: 49.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.6928, allocations: 12.22 kB / 0.502 GB, free: 49.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.6938, allocations: 0.5256 MB / 0.5025 GB, free: 49.48 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003815/0.6976, allocations: 3.805 MB / 0.5062 GB, free: 47.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008392/0.6985, allocations: 424.1 kB / 0.5066 GB, free: 47.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.6988, allocations: 213.4 kB / 0.5068 GB, free: 47.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002576/0.7014, allocations: 3.546 MB / 0.5103 GB, free: 43.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.7014, allocations: 39.19 kB / 0.5103 GB, free: 43.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.446e-06/0.7014, allocations: 1 kB / 0.5103 GB, free: 43.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.008742/0.7102, allocations: 2.042 MB / 0.5123 GB, free: 42.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.7102, allocations: 57.81 kB / 0.5124 GB, free: 42.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.7105, allocations: 305.6 kB / 0.5127 GB, free: 42.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.7106, allocations: 34.95 kB / 0.5127 GB, free: 42.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.7107, allocations: 236.1 kB / 0.5129 GB, free: 42.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.57e-05/0.7108, allocations: 189.6 kB / 0.5131 GB, free: 42.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.7108, allocations: 18.48 kB / 0.5131 GB, free: 42.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.633e-05/0.7109, allocations: 353.1 kB / 0.5135 GB, free: 42.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.7111, allocations: 176.3 kB / 0.5136 GB, free: 42.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.7114, allocations: 325.2 kB / 0.514 GB, free: 41.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006396/0.7121, allocations: 0.542 MB / 0.5145 GB, free: 41.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.7121, allocations: 3.906 kB / 0.5145 GB, free: 41.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001119/0.7132, allocations: 0.6732 MB / 0.5151 GB, free: 41.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.7133, allocations: 7.5 kB / 0.5152 GB, free: 41.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.7133, allocations: 7.734 kB / 0.5152 GB, free: 41.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009359/0.7226, allocations: 452.1 kB / 0.5156 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006161/0.7233, allocations: 141.5 kB / 0.5157 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.7248, allocations: 2.999 MB / 0.5187 GB, free: 38.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.7253, allocations: 51.48 kB / 0.5187 GB, free: 38.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.957e-05/0.7254, allocations: 29.62 kB / 0.5187 GB, free: 38.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002726/0.7257, allocations: 188.6 kB / 0.5189 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-05/0.7258, allocations: 38.28 kB / 0.5189 GB, free: 38.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.7271, allocations: 1.053 MB / 0.52 GB, free: 38.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.7271, allocations: 13.17 kB / 0.52 GB, free: 38.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.7271, allocations: 5.344 kB / 0.52 GB, free: 38.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009351/0.7281, allocations: 1.089 MB / 0.5211 GB, free: 38.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0019/0.73, allocations: 1.73 MB / 0.5227 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.73, allocations: 7.406 kB / 0.5228 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.7304, allocations: 96.83 kB / 0.5228 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003011/0.7334, allocations: 366.4 kB / 0.5232 GB, free: 37.78 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-05/0.7335, allocations: 13.72 kB / 0.5232 GB, free: 37.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004835/0.734, allocations: 1.145 MB / 0.5243 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.734, allocations: 5.016 kB / 0.5243 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001331/0.7353, allocations: 1.123 MB / 0.5254 GB, free: 36.53 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002557/0.7356, allocations: 136.1 kB / 0.5256 GB, free: 36.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.7357, allocations: 20 kB / 0.5256 GB, free: 36.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003531/0.7361, allocations: 29.38 kB / 0.5256 GB, free: 36.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.7361, allocations: 40.94 kB / 0.5256 GB, free: 36.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.7362, allocations: 17.31 kB / 0.5257 GB, free: 36.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000264/0.7365, allocations: 250.6 kB / 0.5259 GB, free: 36.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7365, allocations: 0 / 0.5259 GB, free: 36.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0071/0.7436, allocations: 0.9579 MB / 0.5268 GB, free: 35.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04472/0.7883, allocations: 7.86 MB / 0.5345 GB, free: 28.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.7899, allocations: 0.6932 MB / 0.5352 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.7899, allocations: 4 kB / 0.5352 GB, free: 27.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.7905, allocations: 362.7 kB / 0.5355 GB, free: 27.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.7919, allocations: 250.5 kB / 0.5358 GB, free: 27.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.7938, allocations: 1.652 MB / 0.5374 GB, free: 26.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.7941, allocations: 0.8656 MB / 0.5382 GB, free: 25.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.7942, allocations: 59.23 kB / 0.5383 GB, free: 25.23 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.7943, allocations: 0 / 0.5383 GB, free: 25.23 MB / 378.7 MB Notification: Performance of Templates: time 0.04207/0.8363, allocations: 38.54 MB / 0.5759 GB, free: 3.957 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches