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.0008093/0.0008094, allocations: 92.75 kB / 16.65 MB, free: 6.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.0008499/0.0008499, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.342/1.342, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002454, allocations: 4 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08632/0.08659, allocations: 50.42 MB / 351.8 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.187/0.2737, allocations: 36.48 MB / 388.3 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03148/0.3052, allocations: 31.07 MB / 419.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005944/0.3058, allocations: 9.719 kB / 419.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.3069, allocations: 345.8 kB / 419.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001112/0.308, allocations: 0.5001 MB / 420.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01289/0.3209, allocations: 4.159 MB / 424.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002237/0.3231, allocations: 2.034 MB / 426.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.3234, allocations: 134.7 kB / 426.6 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006857/0.3241, allocations: 462.1 kB / 427 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005034/0.3246, allocations: 450.1 kB / 427.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.123e-05/0.3247, allocations: 28 kB / 427.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04674/0.3714, allocations: 35.3 MB / 462.8 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003209/0.3718, allocations: 115.6 kB / 462.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005577/0.3723, allocations: 324.4 kB / 463.2 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05738/0.4297, allocations: 26.11 MB / 489.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4298, allocations: 0 / 489.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4298, allocations: 0 / 489.3 MB, free: 10.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.4298, allocations: 0 / 489.3 MB, free: 10.32 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.007561/0.4374, allocations: 1.318 MB / 490.6 MB, free: 8.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.4374, allocations: 11.97 kB / 490.7 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006717/0.4381, allocations: 95.3 kB / 490.7 MB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004389/0.4385, allocations: 374 kB / 491.1 MB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.4386, allocations: 37 kB / 491.1 MB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.228e-05/0.4387, allocations: 48 kB / 491.2 MB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.4398, allocations: 0.6243 MB / 491.8 MB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.4398, allocations: 8 kB / 491.8 MB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.096e-05/0.4399, allocations: 20 kB / 491.8 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4399, allocations: 12 kB / 491.9 MB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009784/0.4409, allocations: 0.5307 MB / 492.4 MB, free: 7.121 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.003804/0.4447, allocations: 3.807 MB / 496.2 MB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008959/0.4456, allocations: 419.6 kB / 496.6 MB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.4459, allocations: 212 kB / 496.8 MB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003209/0.4492, allocations: 3.537 MB / 0.4886 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.4492, allocations: 42.92 kB / 0.4887 GB, free: 14.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 2.164e-06/0.4492, allocations: 0 / 0.4887 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.009349/0.4586, allocations: 2.041 MB / 0.4907 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.4586, allocations: 55.84 kB / 0.4907 GB, free: 11.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/0.4589, allocations: 312.3 kB / 0.491 GB, free: 11.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.459, allocations: 33.7 kB / 0.491 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.4591, allocations: 236.7 kB / 0.4913 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4593, allocations: 193.2 kB / 0.4914 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.4594, allocations: 53.69 kB / 0.4915 GB, free: 11.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4595, allocations: 354.8 kB / 0.4918 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.4598, allocations: 177.2 kB / 0.492 GB, free: 10.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003872/0.4602, allocations: 332 kB / 0.4923 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007391/0.461, allocations: 0.5484 MB / 0.4929 GB, free: 9.543 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.461, allocations: 4 kB / 0.4929 GB, free: 9.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001225/0.4622, allocations: 0.6736 MB / 0.4935 GB, free: 8.852 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.4622, allocations: 8 kB / 0.4935 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.4622, allocations: 4 kB / 0.4935 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009687/0.4719, allocations: 458.3 kB / 0.494 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005508/0.4725, allocations: 135.8 kB / 0.4941 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.4744, allocations: 2.998 MB / 0.497 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003837/0.4748, allocations: 55.91 kB / 0.4971 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.4748, allocations: 24 kB / 0.4971 GB, free: 4.965 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 (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.0002352/0.4751, allocations: 189.7 kB / 0.4973 GB, free: 4.77 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.365e-05/0.4752, allocations: 43.53 kB / 0.4973 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.4767, allocations: 1.052 MB / 0.4984 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4767, allocations: 11.94 kB / 0.4984 GB, free: 3.648 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.4767, allocations: 4 kB / 0.4984 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/0.4779, allocations: 1.091 MB / 0.4994 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.48, allocations: 1.73 MB / 0.5011 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4801, allocations: 3.938 kB / 0.5011 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.4804, allocations: 99.89 kB / 0.5012 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003309/0.4838, allocations: 365 kB / 0.5016 GB, free: 228 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.366e-05/0.4838, allocations: 16 kB / 0.5016 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006765/0.4845, allocations: 1.155 MB / 0.5027 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4845, allocations: 0 / 0.5027 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.486, allocations: 1.12 MB / 0.5038 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.4862, allocations: 136.5 kB / 0.5039 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.691e-05/0.4862, allocations: 19.92 kB / 0.504 GB, free: 13.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/0.4866, allocations: 35.92 kB / 0.504 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.4866, allocations: 32.52 kB / 0.504 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.4867, allocations: 27.98 kB / 0.504 GB, free: 13.59 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000261/0.4869, allocations: 247 kB / 0.5043 GB, free: 13.35 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.487, allocations: 0 / 0.5043 GB, free: 13.35 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005109/0.4921, allocations: 0.9721 MB / 0.5052 GB, free: 12.38 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 (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.04505/0.5371, allocations: 7.857 MB / 0.5129 GB, free: 4.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.5387, allocations: 0.7007 MB / 0.5136 GB, free: 3.789 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.5387, allocations: 0 / 0.5136 GB, free: 3.789 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.5393, allocations: 363.5 kB / 0.5139 GB, free: 3.434 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.5409, allocations: 256.1 kB / 0.5142 GB, free: 3.188 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.5432, allocations: 1.659 MB / 0.5158 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.5437, allocations: 0.865 MB / 0.5166 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005376/0.5442, allocations: 241.6 kB / 0.5169 GB, free: 388 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.5443, allocations: 51.42 kB / 0.5169 GB, free: 336 kB / 430.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5443, allocations: 0 / 0.5169 GB, free: 336 kB / 430.1 MB Notification: Performance of Templates: time 0.1962/0.7405, allocations: 35.41 MB / 0.5515 GB, free: 144.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