Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 88.16 kB / 16.31 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 180.9 kB / 17.21 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.3 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003045, allocations: 8 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1032, allocations: 50.42 MB / 351.2 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2152/0.3184, allocations: 34.74 MB / 386 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02982/0.3483, allocations: 28.12 MB / 414.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008124/0.3491, allocations: 5.5 kB / 414.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.3503, allocations: 318.5 kB / 414.4 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.3516, allocations: 495 kB / 414.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01393/0.3655, allocations: 3.835 MB / 418.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.3682, allocations: 1.71 MB / 420.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.3686, allocations: 121.2 kB / 420.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.3696, allocations: 476.3 kB / 421 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008225/0.3705, allocations: 422.3 kB / 421.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.978e-05/0.3706, allocations: 24 kB / 421.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07285/0.4434, allocations: 51.74 MB / 473.2 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003738/0.4438, allocations: 123.6 kB / 473.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004133/0.4443, allocations: 141.5 kB / 473.5 MB, free: 9.621 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03154/0.4758, allocations: 13.87 MB / 487.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4759, allocations: 0 / 487.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4759, allocations: 0 / 487.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.4759, allocations: 0 / 487.3 MB, free: 11.73 MB / 398.1 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.007382/0.4833, allocations: 1.31 MB / 488.6 MB, free: 10.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.4833, allocations: 16.02 kB / 488.7 MB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006635/0.484, allocations: 95.27 kB / 488.7 MB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.4845, allocations: 370.1 kB / 489.1 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.4845, allocations: 33 kB / 489.1 MB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.541e-05/0.4846, allocations: 51.98 kB / 489.2 MB, free: 9.777 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.4858, allocations: 0.6166 MB / 489.8 MB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.4858, allocations: 4 kB / 489.8 MB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-05/0.4859, allocations: 20 kB / 489.8 MB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.4859, allocations: 12 kB / 489.8 MB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.4869, allocations: 0.5268 MB / 490.4 MB, free: 8.551 MB / 398.1 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.004043/0.491, allocations: 3.811 MB / 494.2 MB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000925/0.4919, allocations: 410.5 kB / 494.6 MB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003246/0.4922, allocations: 209.5 kB / 494.8 MB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00304/0.4953, allocations: 3.552 MB / 498.3 MB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.4953, allocations: 34.94 kB / 498.4 MB, free: 15.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.4953, allocations: 0 / 498.4 MB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.008907/0.5043, allocations: 2.049 MB / 0.4887 GB, free: 13.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.5043, allocations: 59.84 kB / 0.4888 GB, free: 13.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003149/0.5046, allocations: 304.4 kB / 0.489 GB, free: 13.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.5047, allocations: 33.7 kB / 0.4891 GB, free: 12.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.5048, allocations: 244.5 kB / 0.4893 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.505, allocations: 185.3 kB / 0.4895 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.733e-05/0.505, allocations: 12 kB / 0.4895 GB, free: 12.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5052, allocations: 350.8 kB / 0.4898 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002931/0.5055, allocations: 177.2 kB / 0.49 GB, free: 12.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.5059, allocations: 336 kB / 0.4903 GB, free: 11.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.5062, allocations: 225.3 kB / 0.4905 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5062, allocations: 0 / 0.4905 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001229/0.5075, allocations: 0.6731 MB / 0.4912 GB, free: 10.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.5075, allocations: 8.562 kB / 0.4912 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.5075, allocations: 7.953 kB / 0.4912 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008328/0.5159, allocations: 450 kB / 0.4916 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005835/0.5165, allocations: 143.8 kB / 0.4918 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.5183, allocations: 2.983 MB / 0.4947 GB, free: 6.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.5187, allocations: 52.09 kB / 0.4947 GB, free: 6.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.5188, allocations: 28 kB / 0.4948 GB, free: 6.844 MB / 414.1 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.0002437/0.5191, allocations: 197.6 kB / 0.495 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.911e-05/0.5191, allocations: 47.48 kB / 0.495 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.5206, allocations: 1.055 MB / 0.496 GB, free: 5.531 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.5206, allocations: 4 kB / 0.496 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5207, allocations: 7.984 kB / 0.496 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001097/0.5218, allocations: 1.083 MB / 0.4971 GB, free: 4.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002111/0.5239, allocations: 1.738 MB / 0.4988 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5239, allocations: 0 / 0.4988 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.5243, allocations: 103.9 kB / 0.4989 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0028/0.5271, allocations: 357 kB / 0.4992 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.76e-05/0.5272, allocations: 12 kB / 0.4992 GB, free: 2.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006205/0.5278, allocations: 1.148 MB / 0.5004 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5278, allocations: 0 / 0.5004 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.5292, allocations: 1.124 MB / 0.5015 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.5293, allocations: 144.3 kB / 0.5016 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.5294, allocations: 17.89 kB / 0.5016 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002871/0.5297, allocations: 31.92 kB / 0.5016 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.5298, allocations: 40.5 kB / 0.5017 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/0.5298, allocations: 16 kB / 0.5017 GB, free: 15.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002477/0.5301, allocations: 251 kB / 0.5019 GB, free: 15.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5301, allocations: 0 / 0.5019 GB, free: 15.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005157/0.5352, allocations: 0.9527 MB / 0.5029 GB, free: 14.28 MB / 430.1 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.04239/0.5776, allocations: 7.872 MB / 0.5106 GB, free: 6.379 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.5791, allocations: 0.6994 MB / 0.5112 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5791, allocations: 0 / 0.5112 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005673/0.5797, allocations: 364.7 kB / 0.5116 GB, free: 5.32 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.581, allocations: 264.4 kB / 0.5118 GB, free: 5.062 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.5832, allocations: 1.602 MB / 0.5134 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003746/0.5836, allocations: 0.865 MB / 0.5143 GB, free: 2.543 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005341/0.5842, allocations: 245 kB / 0.5145 GB, free: 2.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.5843, allocations: 47.44 kB / 0.5145 GB, free: 2.258 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.5843, allocations: 0 / 0.5145 GB, free: 2.258 MB / 430.1 MB Notification: Performance of Templates: time 0.2208/0.8051, allocations: 34.98 MB / 0.5487 GB, free: 145.6 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches