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.001281/0.001281, allocations: 109.8 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.001182/0.001182, allocations: 181.5 kB / 18.66 MB, free: 4.445 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.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.274, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03757/0.3117, allocations: 37.64 MB / 439.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03381/0.3455, allocations: 30.59 MB / 469.6 MB, free: 4.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006686/0.3462, allocations: 8 kB / 469.6 MB, free: 4.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.3475, allocations: 409.7 kB / 470.1 MB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001406/0.349, allocations: 0.5127 MB / 470.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01417/0.3632, allocations: 5.135 MB / 475.7 MB, free: 14.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001789/0.365, allocations: 1.359 MB / 477.1 MB, free: 12.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003517/0.3653, allocations: 178.5 kB / 477.2 MB, free: 12.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.3664, allocations: 0.5371 MB / 477.8 MB, free: 12.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006941/0.3671, allocations: 430.3 kB / 478.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000117/0.3672, allocations: 56 kB / 478.2 MB, free: 11.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02401/0.3912, allocations: 12.8 MB / 491 MB, free: 14.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002845/0.3916, allocations: 147.5 kB / 491.2 MB, free: 14.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000476/0.3921, allocations: 322.8 kB / 491.5 MB, free: 14.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04173/0.4338, allocations: 14.91 MB / 0.4945 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.4339, allocations: 4 kB / 0.4946 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4339, allocations: 0 / 0.4946 GB, free: 15.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.995e-05/0.4339, allocations: 0 / 0.4946 GB, free: 15.55 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.007434/0.4413, allocations: 1.427 MB / 0.4959 GB, free: 14.07 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4414, allocations: 11.89 kB / 0.496 GB, free: 14.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007609/0.4422, allocations: 91.34 kB / 0.496 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005879/0.4428, allocations: 385.9 kB / 0.4964 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.4428, allocations: 33 kB / 0.4964 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.4429, allocations: 55.91 kB / 0.4965 GB, free: 13.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.4441, allocations: 0.6244 MB / 0.4971 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.4442, allocations: 7.938 kB / 0.4971 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.4442, allocations: 16 kB / 0.4971 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.4442, allocations: 12 kB / 0.4971 GB, free: 12.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.4453, allocations: 0.5307 MB / 0.4977 GB, free: 12.22 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.004209/0.4495, allocations: 3.799 MB / 0.5014 GB, free: 8.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009645/0.4505, allocations: 423.4 kB / 0.5018 GB, free: 7.699 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002926/0.4508, allocations: 201.5 kB / 0.502 GB, free: 7.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003454/0.4543, allocations: 3.459 MB / 0.5053 GB, free: 3.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.4543, allocations: 42.88 kB / 0.5054 GB, free: 3.289 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.855e-06/0.4543, allocations: 4 kB / 0.5054 GB, free: 3.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009668/0.464, allocations: 2.025 MB / 0.5074 GB, free: 1.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/0.4641, allocations: 63.78 kB / 0.5074 GB, free: 1.105 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.4646, allocations: 308.5 kB / 0.5077 GB, free: 0.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.866e-05/0.4647, allocations: 33.7 kB / 0.5078 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.4649, allocations: 228.6 kB / 0.508 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.4651, allocations: 193.2 kB / 0.5082 GB, free: 344 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.4653, allocations: 114.3 kB / 0.5083 GB, free: 224 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4655, allocations: 350.8 kB / 0.5086 GB, free: 15.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003109/0.4658, allocations: 177.2 kB / 0.5088 GB, free: 15.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004228/0.4662, allocations: 328 kB / 0.5091 GB, free: 15.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007762/0.467, allocations: 0.5523 MB / 0.5096 GB, free: 14.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.467, allocations: 4 kB / 0.5096 GB, free: 14.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00133/0.4684, allocations: 0.6695 MB / 0.5103 GB, free: 14.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.4684, allocations: 15.88 kB / 0.5103 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.4684, allocations: 4 kB / 0.5103 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009539/0.478, allocations: 446.6 kB / 0.5107 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006474/0.4787, allocations: 139.8 kB / 0.5109 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.4809, allocations: 3.101 MB / 0.5139 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.4813, allocations: 19.94 kB / 0.5139 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-05/0.4814, allocations: 28 kB / 0.5139 GB, free: 10.05 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.000313/0.4817, allocations: 193.8 kB / 0.5141 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.4819, allocations: 39.53 kB / 0.5141 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.4835, allocations: 1.048 MB / 0.5152 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/0.4835, allocations: 4 kB / 0.5152 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.4835, allocations: 3.984 kB / 0.5152 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001218/0.4848, allocations: 1.095 MB / 0.5162 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/0.487, allocations: 1.722 MB / 0.5179 GB, free: 5.781 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4871, allocations: 3.938 kB / 0.5179 GB, free: 5.777 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.4875, allocations: 111.8 kB / 0.518 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003056/0.4905, allocations: 341.1 kB / 0.5184 GB, free: 5.328 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.561e-05/0.4906, allocations: 15.98 kB / 0.5184 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007186/0.4914, allocations: 1.144 MB / 0.5195 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4914, allocations: 0 / 0.5195 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.493, allocations: 1.128 MB / 0.5206 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001605/0.4932, allocations: 132.5 kB / 0.5207 GB, free: 2.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.473e-05/0.4933, allocations: 12 kB / 0.5207 GB, free: 2.809 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.4936, allocations: 15.94 kB / 0.5208 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.698e-05/0.4936, allocations: 32.52 kB / 0.5208 GB, free: 2.762 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.4937, allocations: 23.98 kB / 0.5208 GB, free: 2.738 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002859/0.494, allocations: 247 kB / 0.521 GB, free: 2.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.494, allocations: 0 / 0.521 GB, free: 2.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005858/0.4999, allocations: 0.9643 MB / 0.522 GB, free: 1.535 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.0316/0.5315, allocations: 7.883 MB / 0.5297 GB, free: 9.629 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.5333, allocations: 0.7201 MB / 0.5304 GB, free: 8.891 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.5334, allocations: 0 / 0.5304 GB, free: 8.891 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.5341, allocations: 367.5 kB / 0.5307 GB, free: 8.535 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.5356, allocations: 253 kB / 0.531 GB, free: 8.289 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.5381, allocations: 1.356 MB / 0.5323 GB, free: 6.902 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.5385, allocations: 0.8647 MB / 0.5331 GB, free: 6.008 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.5387, allocations: 55.44 kB / 0.5332 GB, free: 5.953 MB / 462.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5387, allocations: 0 / 0.5332 GB, free: 5.953 MB / 462.1 MB Notification: Performance of Templates: time 0.2521/0.7909, allocations: 38.68 MB / 0.571 GB, free: 102.9 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