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.001435/0.001435, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001751/0.001751, allocations: 191 kB / 18 MB, free: 5.207 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.317/1.317, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009335/0.0009335, allocations: 43.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2385, allocations: 49.43 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03387/0.2724, allocations: 37.64 MB / 438.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03032/0.3028, allocations: 30.59 MB / 469 MB, free: 4.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000524/0.3034, allocations: 7.938 kB / 469 MB, free: 4.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009986/0.3044, allocations: 409.7 kB / 469.4 MB, free: 3.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009428/0.3054, allocations: 0.5166 MB / 469.9 MB, free: 3.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01248/0.3179, allocations: 5.136 MB / 475 MB, free: 14.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.3195, allocations: 1.355 MB / 476.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.3198, allocations: 174.5 kB / 476.5 MB, free: 12.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007421/0.3206, allocations: 0.5333 MB / 477.1 MB, free: 12.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000477/0.3211, allocations: 442.3 kB / 477.5 MB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.3211, allocations: 52 kB / 477.6 MB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02042/0.3416, allocations: 12.8 MB / 490.4 MB, free: 14.91 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002537/0.3419, allocations: 147.5 kB / 490.5 MB, free: 14.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004914/0.3424, allocations: 330.7 kB / 490.8 MB, free: 14.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03308/0.3755, allocations: 14.9 MB / 0.4939 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3755, allocations: 0 / 0.4939 GB, free: 15.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3755, allocations: 0 / 0.4939 GB, free: 15.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.3755, allocations: 4 kB / 0.4939 GB, free: 15.52 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.00794/0.3835, allocations: 1.415 MB / 0.4953 GB, free: 14.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3835, allocations: 15.89 kB / 0.4953 GB, free: 14.04 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007046/0.3843, allocations: 107.1 kB / 0.4954 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.3848, allocations: 386 kB / 0.4957 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3848, allocations: 33 kB / 0.4958 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.3849, allocations: 51.91 kB / 0.4958 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.386, allocations: 0.6244 MB / 0.4964 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.386, allocations: 0 / 0.4964 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.3861, allocations: 24 kB / 0.4965 GB, free: 12.74 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.3861, allocations: 16 kB / 0.4965 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009753/0.3871, allocations: 0.5268 MB / 0.497 GB, free: 12.2 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.003706/0.3908, allocations: 3.792 MB / 0.5007 GB, free: 8.098 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008927/0.3917, allocations: 423.7 kB / 0.5011 GB, free: 7.676 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.392, allocations: 213.5 kB / 0.5013 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.3952, allocations: 3.455 MB / 0.5047 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3952, allocations: 42.94 kB / 0.5047 GB, free: 3.258 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 2.195e-06/0.3952, allocations: 0 / 0.5047 GB, free: 3.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009307/0.4046, allocations: 2.025 MB / 0.5067 GB, free: 1.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.4046, allocations: 59.78 kB / 0.5068 GB, free: 1.082 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/0.4049, allocations: 304.5 kB / 0.507 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.3e-05/0.405, allocations: 37.7 kB / 0.5071 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.4051, allocations: 228.6 kB / 0.5073 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.4053, allocations: 201.1 kB / 0.5075 GB, free: 312 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.4054, allocations: 114.3 kB / 0.5076 GB, free: 192 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4056, allocations: 346.8 kB / 0.5079 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002919/0.4059, allocations: 177.2 kB / 0.5081 GB, free: 15.67 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004004/0.4063, allocations: 336 kB / 0.5084 GB, free: 15.28 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.407, allocations: 0.5446 MB / 0.5089 GB, free: 14.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4071, allocations: 0 / 0.5089 GB, free: 14.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001252/0.4083, allocations: 0.6736 MB / 0.5096 GB, free: 13.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4083, allocations: 11.88 kB / 0.5096 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4084, allocations: 8 kB / 0.5096 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009922/0.4183, allocations: 450.4 kB / 0.5101 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006276/0.419, allocations: 143.8 kB / 0.5102 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00199/0.421, allocations: 3.093 MB / 0.5132 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.4213, allocations: 23.94 kB / 0.5132 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-05/0.4214, allocations: 24 kB / 0.5133 GB, free: 10.02 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.0002547/0.4216, allocations: 193.6 kB / 0.5134 GB, free: 9.824 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.4218, allocations: 43.53 kB / 0.5135 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.4233, allocations: 1.048 MB / 0.5145 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.4233, allocations: 11.94 kB / 0.5145 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.4233, allocations: 0 / 0.5145 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001113/0.4244, allocations: 1.095 MB / 0.5156 GB, free: 7.531 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.4265, allocations: 1.722 MB / 0.5173 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.4266, allocations: 0 / 0.5173 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003906/0.4269, allocations: 103.8 kB / 0.5174 GB, free: 5.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003146/0.4301, allocations: 357 kB / 0.5177 GB, free: 5.289 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.032e-05/0.4302, allocations: 12 kB / 0.5177 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007222/0.4309, allocations: 1.144 MB / 0.5188 GB, free: 4.082 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4309, allocations: 0 / 0.5188 GB, free: 4.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.4324, allocations: 1.124 MB / 0.5199 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.4325, allocations: 128.5 kB / 0.5201 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.4326, allocations: 12 kB / 0.5201 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.4329, allocations: 16.03 kB / 0.5201 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.4329, allocations: 36.52 kB / 0.5201 GB, free: 2.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.433, allocations: 23.98 kB / 0.5201 GB, free: 2.707 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002528/0.4332, allocations: 251 kB / 0.5204 GB, free: 2.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.4332, allocations: 0 / 0.5204 GB, free: 2.465 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005722/0.439, allocations: 0.9643 MB / 0.5213 GB, free: 1.5 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.02922/0.4682, allocations: 7.875 MB / 0.529 GB, free: 9.602 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.4699, allocations: 0.7162 MB / 0.5297 GB, free: 8.867 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4699, allocations: 0 / 0.5297 GB, free: 8.867 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006236/0.4706, allocations: 371.5 kB / 0.5301 GB, free: 8.508 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.4721, allocations: 255.5 kB / 0.5303 GB, free: 8.262 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.4741, allocations: 1.324 MB / 0.5316 GB, free: 6.914 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.4746, allocations: 0.8648 MB / 0.5324 GB, free: 6.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004813/0.4751, allocations: 244.8 kB / 0.5327 GB, free: 5.777 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.4752, allocations: 51.42 kB / 0.5327 GB, free: 5.727 MB / 462.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4752, allocations: 0 / 0.5327 GB, free: 5.727 MB / 462.1 MB Notification: Performance of Templates: time 0.2181/0.6933, allocations: 36.16 MB / 0.568 GB, free: 105.4 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/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