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.001135/0.001135, allocations: 107 kB / 17.74 MB, free: 5.359 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.001042/0.001042, allocations: 192.5 kB / 18.66 MB, free: 4.438 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.339/1.339, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2986, allocations: 49.43 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.0356/0.3342, allocations: 37.64 MB / 439 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03145/0.3657, allocations: 30.6 MB / 469.6 MB, free: 4.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000665/0.3664, allocations: 7.938 kB / 469.7 MB, free: 4.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.3676, allocations: 405.7 kB / 470 MB, free: 4.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.3688, allocations: 0.5166 MB / 470.6 MB, free: 3.512 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01478/0.3836, allocations: 5.129 MB / 475.7 MB, free: 14.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.3857, allocations: 1.359 MB / 477.1 MB, free: 13.01 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003494/0.3861, allocations: 178.5 kB / 477.2 MB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001107/0.3872, allocations: 0.541 MB / 477.8 MB, free: 12.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006623/0.3879, allocations: 442.3 kB / 478.2 MB, free: 11.85 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001011/0.388, allocations: 52 kB / 478.2 MB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02562/0.4136, allocations: 12.81 MB / 491.1 MB, free: 14.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003395/0.414, allocations: 147.5 kB / 491.2 MB, free: 14.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006736/0.4147, allocations: 326.7 kB / 491.5 MB, free: 14.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04317/0.4579, allocations: 14.91 MB / 0.4946 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4579, allocations: 0 / 0.4946 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.458, allocations: 0 / 0.4946 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.624e-05/0.458, allocations: 0 / 0.4946 GB, free: 15.58 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.008693/0.4667, allocations: 1.419 MB / 0.4959 GB, free: 14.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.4668, allocations: 15.89 kB / 0.496 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008598/0.4676, allocations: 95.33 kB / 0.496 GB, free: 14 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007356/0.4684, allocations: 385.9 kB / 0.4964 GB, free: 13.58 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.496e-05/0.4684, allocations: 33 kB / 0.4964 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.4686, allocations: 51.91 kB / 0.4965 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.4698, allocations: 0.6205 MB / 0.4971 GB, free: 12.83 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.4699, allocations: 4 kB / 0.4971 GB, free: 12.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.413e-05/0.4699, allocations: 24 kB / 0.4971 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.47, allocations: 12 kB / 0.4971 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.471, allocations: 0.5268 MB / 0.4977 GB, free: 12.26 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.004122/0.4751, allocations: 3.795 MB / 0.5014 GB, free: 8.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009515/0.4761, allocations: 423.7 kB / 0.5018 GB, free: 7.738 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.4764, allocations: 205.5 kB / 0.502 GB, free: 7.535 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003115/0.4795, allocations: 3.455 MB / 0.5053 GB, free: 3.379 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.4796, allocations: 42.94 kB / 0.5054 GB, free: 3.328 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.264e-06/0.4796, allocations: 0 / 0.5054 GB, free: 3.328 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009443/0.4891, allocations: 2.025 MB / 0.5074 GB, free: 1.223 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.4891, allocations: 63.78 kB / 0.5074 GB, free: 1.148 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003647/0.4895, allocations: 312.5 kB / 0.5077 GB, free: 0.832 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.4896, allocations: 37.7 kB / 0.5077 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.4897, allocations: 228.6 kB / 0.508 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.4899, allocations: 193.2 kB / 0.5082 GB, free: 380 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/0.49, allocations: 110.3 kB / 0.5083 GB, free: 264 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4902, allocations: 354.8 kB / 0.5086 GB, free: 15.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.4905, allocations: 181.2 kB / 0.5088 GB, free: 15.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004021/0.4909, allocations: 328.1 kB / 0.5091 GB, free: 15.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.4917, allocations: 0.5446 MB / 0.5096 GB, free: 14.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4917, allocations: 0 / 0.5096 GB, free: 14.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001286/0.493, allocations: 0.6851 MB / 0.5103 GB, free: 14.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.493, allocations: 11.88 kB / 0.5103 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4931, allocations: 4 kB / 0.5103 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009117/0.5022, allocations: 450.6 kB / 0.5107 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/0.5029, allocations: 139.8 kB / 0.5109 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.5051, allocations: 3.085 MB / 0.5139 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003836/0.5055, allocations: 23.92 kB / 0.5139 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.468e-05/0.5056, allocations: 28 kB / 0.5139 GB, free: 10.09 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.0002949/0.5059, allocations: 185.8 kB / 0.5141 GB, free: 9.898 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.506, allocations: 51.52 kB / 0.5141 GB, free: 9.848 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.5076, allocations: 1.048 MB / 0.5152 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.5077, allocations: 7.984 kB / 0.5152 GB, free: 8.773 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.5077, allocations: 7.984 kB / 0.5152 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001153/0.5088, allocations: 1.091 MB / 0.5163 GB, free: 7.598 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.5111, allocations: 1.725 MB / 0.5179 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.5111, allocations: 0 / 0.5179 GB, free: 5.809 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.5115, allocations: 107.8 kB / 0.518 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002907/0.5144, allocations: 345 kB / 0.5184 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.5145, allocations: 16 kB / 0.5184 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006873/0.5152, allocations: 1.144 MB / 0.5195 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5152, allocations: 4 kB / 0.5195 GB, free: 4.145 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.5168, allocations: 1.124 MB / 0.5206 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.517, allocations: 120.4 kB / 0.5207 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.5171, allocations: 20.22 kB / 0.5207 GB, free: 2.844 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002874/0.5174, allocations: 19.94 kB / 0.5208 GB, free: 2.824 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.385e-05/0.5175, allocations: 36.52 kB / 0.5208 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.714e-05/0.5175, allocations: 27.98 kB / 0.5208 GB, free: 2.762 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000294/0.5178, allocations: 243 kB / 0.521 GB, free: 2.527 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5178, allocations: 0 / 0.521 GB, free: 2.527 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006059/0.5239, allocations: 0.9644 MB / 0.522 GB, free: 1.562 MB / 446.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.03236/0.5563, allocations: 7.867 MB / 0.5297 GB, free: 9.668 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.5581, allocations: 0.724 MB / 0.5304 GB, free: 8.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5581, allocations: 0 / 0.5304 GB, free: 8.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006833/0.5588, allocations: 367.5 kB / 0.5307 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.5603, allocations: 260.9 kB / 0.531 GB, free: 8.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.5628, allocations: 1.357 MB / 0.5323 GB, free: 6.934 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.5632, allocations: 0.8609 MB / 0.5331 GB, free: 6.043 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.5634, allocations: 55.42 kB / 0.5332 GB, free: 5.988 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5634, allocations: 0 / 0.5332 GB, free: 5.988 MB / 462.1 MB Notification: Performance of Templates: time 0.2536/0.8171, allocations: 38.61 MB / 0.5709 GB, free: 103 MB / 462.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