Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001298, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 198 kB / 18.73 MB, free: 4.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 67.88 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2443, allocations: 50.55 MB / 409.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.0346/0.279, allocations: 37.73 MB / 447 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02913/0.3081, allocations: 30.63 MB / 477.6 MB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005398/0.3087, allocations: 8 kB / 477.6 MB, free: 12.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.3098, allocations: 409.7 kB / 478 MB, free: 12.59 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.3108, allocations: 0.5166 MB / 478.5 MB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01379/0.3246, allocations: 5.147 MB / 483.7 MB, free: 6.906 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001865/0.3265, allocations: 1.355 MB / 485.1 MB, free: 5.547 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002999/0.3268, allocations: 170.7 kB / 485.2 MB, free: 5.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008791/0.3277, allocations: 0.5332 MB / 485.8 MB, free: 4.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006215/0.3283, allocations: 446.2 kB / 486.2 MB, free: 4.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.787e-05/0.3284, allocations: 52 kB / 486.2 MB, free: 4.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02412/0.3526, allocations: 12.81 MB / 499 MB, free: 7.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.3529, allocations: 147.6 kB / 499.2 MB, free: 7.375 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004586/0.3533, allocations: 330.7 kB / 499.5 MB, free: 7.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03939/0.3927, allocations: 14.94 MB / 0.5024 GB, free: 8.094 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.3928, allocations: 0 / 0.5024 GB, free: 8.094 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3928, allocations: 0 / 0.5024 GB, free: 8.094 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.3928, allocations: 4 kB / 0.5024 GB, free: 8.09 MB / 430.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.007778/0.4006, allocations: 1.475 MB / 0.5038 GB, free: 6.555 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4007, allocations: 12.03 kB / 0.5038 GB, free: 6.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007115/0.4014, allocations: 103.6 kB / 0.5039 GB, free: 6.441 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.4019, allocations: 378.2 kB / 0.5043 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.402, allocations: 33 kB / 0.5043 GB, free: 6 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.935e-05/0.4021, allocations: 55.98 kB / 0.5044 GB, free: 5.945 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.4032, allocations: 0.6166 MB / 0.505 GB, free: 5.281 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.4033, allocations: 3.953 kB / 0.505 GB, free: 5.277 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.77e-05/0.4033, allocations: 27.98 kB / 0.505 GB, free: 5.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.4033, allocations: 19.94 kB / 0.505 GB, free: 5.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.4044, allocations: 0.519 MB / 0.5056 GB, free: 4.711 MB / 430.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.004181/0.4086, allocations: 3.796 MB / 0.5093 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008971/0.4095, allocations: 424.6 kB / 0.5097 GB, free: 192 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003398/0.4098, allocations: 212.6 kB / 0.5099 GB, free: 15.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003218/0.413, allocations: 3.459 MB / 0.5132 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.4131, allocations: 38.94 kB / 0.5133 GB, free: 11.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.134e-06/0.4131, allocations: 0 / 0.5133 GB, free: 11.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009152/0.4223, allocations: 2.038 MB / 0.5153 GB, free: 9.656 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.4223, allocations: 63.78 kB / 0.5153 GB, free: 9.582 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.4226, allocations: 300.5 kB / 0.5156 GB, free: 9.285 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.4227, allocations: 37.7 kB / 0.5157 GB, free: 9.242 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.4229, allocations: 249.1 kB / 0.5159 GB, free: 8.996 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.423, allocations: 194.3 kB / 0.5161 GB, free: 8.805 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.4232, allocations: 118.3 kB / 0.5162 GB, free: 8.684 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4233, allocations: 346.8 kB / 0.5165 GB, free: 8.336 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.4236, allocations: 185.2 kB / 0.5167 GB, free: 8.156 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.424, allocations: 328.1 kB / 0.517 GB, free: 7.773 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000781/0.4248, allocations: 0.5485 MB / 0.5175 GB, free: 7.164 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4248, allocations: 0 / 0.5175 GB, free: 7.164 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001234/0.4261, allocations: 0.6778 MB / 0.5182 GB, free: 6.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.4261, allocations: 11.94 kB / 0.5182 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.4261, allocations: 4 kB / 0.5182 GB, free: 6.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009371/0.4355, allocations: 446.3 kB / 0.5186 GB, free: 6.008 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.4361, allocations: 139.8 kB / 0.5188 GB, free: 5.871 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.4381, allocations: 3.101 MB / 0.5218 GB, free: 2.555 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.4384, allocations: 15.94 kB / 0.5218 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.96e-05/0.4385, allocations: 28 kB / 0.5219 GB, free: 2.512 MB / 446.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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002457/0.4388, allocations: 189.6 kB / 0.522 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.4389, allocations: 47.72 kB / 0.5221 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001524/0.4404, allocations: 1.06 MB / 0.5231 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.4404, allocations: 15.98 kB / 0.5231 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4404, allocations: 0 / 0.5231 GB, free: 1.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001153/0.4416, allocations: 1.083 MB / 0.5242 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.4438, allocations: 1.726 MB / 0.5259 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.4438, allocations: 0 / 0.5259 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003896/0.4442, allocations: 111.8 kB / 0.526 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/0.4471, allocations: 353.1 kB / 0.5263 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.4472, allocations: 15.98 kB / 0.5263 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006604/0.4478, allocations: 1.148 MB / 0.5275 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4479, allocations: 0 / 0.5275 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001474/0.4493, allocations: 1.125 MB / 0.5285 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.4495, allocations: 128.7 kB / 0.5287 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.698e-05/0.4495, allocations: 19.94 kB / 0.5287 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.4498, allocations: 11.94 kB / 0.5287 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.4499, allocations: 40.61 kB / 0.5287 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/0.4499, allocations: 19.98 kB / 0.5288 GB, free: 11.17 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002551/0.4502, allocations: 251 kB / 0.529 GB, free: 10.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4502, allocations: 0 / 0.529 GB, free: 10.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004628/0.4548, allocations: 0.978 MB / 0.53 GB, free: 9.949 MB / 462.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02965/0.4845, allocations: 7.88 MB / 0.5377 GB, free: 2.043 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.4862, allocations: 0.7201 MB / 0.5384 GB, free: 1.312 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4862, allocations: 0 / 0.5384 GB, free: 1.312 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006194/0.4868, allocations: 367.5 kB / 0.5387 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.4882, allocations: 260.9 kB / 0.539 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1745/0.6628, allocations: 1.334 MB / 0.5403 GB, free: 120.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.6632, allocations: 0.8707 MB / 0.5411 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006388/0.6638, allocations: 243 kB / 0.5413 GB, free: 120 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.664, allocations: 48.14 kB / 0.5414 GB, free: 120 MB / 462.1 MB Notification: Performance of SimCode: time 6.92e-07/0.664, allocations: 1.906 kB / 0.5414 GB, free: 120 MB / 462.1 MB Notification: Performance of Templates: time 0.03607/0.7001, allocations: 36.19 MB / 0.5767 GB, free: 92.27 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & ./Modelica_trunk_Modelica.Media.Examples.R134a.R134a2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches