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.0009033/0.0009037, allocations: 91.75 kB / 17.31 MB, free: 5.59 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.0009129/0.000913, allocations: 182.4 kB / 18.21 MB, free: 5.191 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.28/1.28, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.0002981, allocations: 15.98 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09919/0.09951, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2101/0.3097, allocations: 36.48 MB / 389 MB, free: 6.312 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03314/0.3428, allocations: 31.07 MB / 420 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007489/0.3436, allocations: 15.56 kB / 420.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.3447, allocations: 340.2 kB / 420.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.3459, allocations: 0.5015 MB / 420.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01415/0.3601, allocations: 4.159 MB / 425.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002159/0.3623, allocations: 2.042 MB / 427.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.3625, allocations: 130.7 kB / 427.2 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007177/0.3633, allocations: 462.2 kB / 427.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.3638, allocations: 450.2 kB / 428.1 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.162e-05/0.3638, allocations: 28 kB / 428.1 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04671/0.4105, allocations: 35.3 MB / 463.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003252/0.4109, allocations: 123.5 kB / 463.6 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005082/0.4114, allocations: 316.5 kB / 463.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02898/0.4404, allocations: 13.87 MB / 477.7 MB, free: 6.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4405, allocations: 0 / 477.7 MB, free: 6.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4405, allocations: 4 kB / 477.7 MB, free: 6.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.4405, allocations: 4 kB / 477.7 MB, free: 6.57 MB / 382.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.007801/0.4483, allocations: 1.303 MB / 479 MB, free: 5.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.4483, allocations: 12.03 kB / 479.1 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007254/0.4491, allocations: 91.31 kB / 479.1 MB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.4496, allocations: 385.9 kB / 479.5 MB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/0.4496, allocations: 33 kB / 479.6 MB, free: 4.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.4497, allocations: 52 kB / 479.6 MB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.4509, allocations: 0.6205 MB / 480.2 MB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.451, allocations: 3.938 kB / 480.2 MB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-05/0.451, allocations: 24 kB / 480.3 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.4511, allocations: 12 kB / 480.3 MB, free: 3.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.4521, allocations: 0.5191 MB / 480.8 MB, free: 3.391 MB / 382.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.004168/0.4563, allocations: 3.811 MB / 484.6 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009016/0.4572, allocations: 419.1 kB / 485 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.4575, allocations: 209.5 kB / 485.2 MB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003194/0.4607, allocations: 3.545 MB / 488.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.4608, allocations: 38.94 kB / 488.8 MB, free: 10.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=46): time 2.454e-06/0.4608, allocations: 0 / 488.8 MB, free: 10.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=54): time 0.009249/0.4701, allocations: 2.037 MB / 490.8 MB, free: 8.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.4701, allocations: 59.84 kB / 490.9 MB, free: 8.168 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003337/0.4705, allocations: 312.3 kB / 491.2 MB, free: 7.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.4705, allocations: 41.7 kB / 491.2 MB, free: 7.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.4707, allocations: 232.6 kB / 491.5 MB, free: 7.578 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.4708, allocations: 193.2 kB / 491.7 MB, free: 7.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.353e-05/0.4709, allocations: 57.69 kB / 491.7 MB, free: 7.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4711, allocations: 350.7 kB / 492 MB, free: 6.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.4714, allocations: 185.2 kB / 492.2 MB, free: 6.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003817/0.4718, allocations: 328.1 kB / 492.6 MB, free: 6.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000736/0.4725, allocations: 0.5484 MB / 493.1 MB, free: 5.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4725, allocations: 0 / 493.1 MB, free: 5.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001301/0.4738, allocations: 0.6735 MB / 493.8 MB, free: 5.113 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.4739, allocations: 8 kB / 493.8 MB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.4739, allocations: 7.938 kB / 493.8 MB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009127/0.483, allocations: 458.5 kB / 494.2 MB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006108/0.4837, allocations: 139.9 kB / 494.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.4857, allocations: 3.002 MB / 497.4 MB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/0.4862, allocations: 44.02 kB / 497.4 MB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-05/0.4863, allocations: 31.98 kB / 497.4 MB, free: 1.219 MB / 398.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.0002938/0.4866, allocations: 182.5 kB / 497.6 MB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.4867, allocations: 47.47 kB / 497.7 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.4883, allocations: 1.057 MB / 498.7 MB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.4883, allocations: 15.98 kB / 498.7 MB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.4884, allocations: 0 / 498.7 MB, free: 15.9 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00112/0.4895, allocations: 1.087 MB / 499.8 MB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002224/0.4917, allocations: 1.734 MB / 0.4898 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.4917, allocations: 0 / 0.4898 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003836/0.4921, allocations: 99.83 kB / 0.4899 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003196/0.4953, allocations: 361 kB / 0.4903 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/0.4954, allocations: 15.98 kB / 0.4903 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006497/0.4961, allocations: 1.144 MB / 0.4914 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4961, allocations: 3.938 kB / 0.4914 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.4975, allocations: 1.131 MB / 0.4925 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.4977, allocations: 140.5 kB / 0.4926 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.623e-05/0.4978, allocations: 16.08 kB / 0.4926 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.4981, allocations: 35.83 kB / 0.4927 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.4982, allocations: 36.52 kB / 0.4927 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.4983, allocations: 19.98 kB / 0.4927 GB, free: 9.852 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.4985, allocations: 251 kB / 0.493 GB, free: 9.605 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4985, allocations: 4 kB / 0.493 GB, free: 9.602 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005443/0.504, allocations: 0.9565 MB / 0.4939 GB, free: 8.645 MB / 414.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.04282/0.5468, allocations: 7.852 MB / 0.5016 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.5487, allocations: 0.7007 MB / 0.5023 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.371e-06/0.5487, allocations: 4 kB / 0.5023 GB, free: 56 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.5494, allocations: 363.6 kB / 0.5026 GB, free: 15.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/0.551, allocations: 261.4 kB / 0.5029 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.5534, allocations: 1.688 MB / 0.5045 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.5538, allocations: 0.865 MB / 0.5054 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.554, allocations: 55.42 kB / 0.5054 GB, free: 12.78 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.554, allocations: 4 kB / 0.5054 GB, free: 12.78 MB / 430.1 MB Notification: Performance of Templates: time 0.2095/0.7635, allocations: 38.55 MB / 0.5431 GB, free: 146.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/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