Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007774/0.0007774, allocations: 100.1 kB / 296.8 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00021/0.00021, allocations: 8 kB / 356.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.1968, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02893/0.2258, allocations: 34.94 MB / 443 MB, free: 8.699 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03016/0.256, allocations: 28.15 MB / 471.1 MB, free: 12.47 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006369/0.2567, allocations: 4 kB / 471.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.2578, allocations: 310.3 kB / 471.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001292/0.2592, allocations: 485.4 kB / 471.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01287/0.272, allocations: 3.853 MB / 475.8 MB, free: 7.828 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00205/0.2741, allocations: 1.702 MB / 477.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.2745, allocations: 130.6 kB / 477.6 MB, free: 5.992 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.2758, allocations: 474.2 kB / 478.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008458/0.2766, allocations: 422.3 kB / 478.5 MB, free: 5.113 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2768, allocations: 28 kB / 478.5 MB, free: 5.086 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2507/0.5275, allocations: 51.75 MB / 0.5178 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.5277, allocations: 113.3 kB / 0.5179 GB, free: 35.65 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.5282, allocations: 314.1 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03592/0.5641, allocations: 13.86 MB / 0.5318 GB, free: 29.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.5642, allocations: 1 kB / 0.5318 GB, free: 29.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5642, allocations: 0 / 0.5318 GB, free: 29.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.5642, allocations: 0 / 0.5318 GB, free: 29.2 MB / 378.7 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.008493/0.5727, allocations: 1.315 MB / 0.533 GB, free: 27.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.5728, allocations: 8.031 kB / 0.5331 GB, free: 27.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006526/0.5735, allocations: 99.31 kB / 0.5331 GB, free: 27.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.5739, allocations: 373.4 kB / 0.5335 GB, free: 27.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.697e-05/0.5739, allocations: 36.38 kB / 0.5335 GB, free: 27.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.883e-05/0.574, allocations: 52.53 kB / 0.5336 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009682/0.5749, allocations: 0.6164 MB / 0.5342 GB, free: 26.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.575, allocations: 8 kB / 0.5342 GB, free: 26.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.566e-05/0.575, allocations: 20.25 kB / 0.5342 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.5751, allocations: 13.03 kB / 0.5342 GB, free: 26.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009197/0.576, allocations: 0.5286 MB / 0.5347 GB, free: 26.62 MB / 378.7 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.003118/0.5791, allocations: 3.807 MB / 0.5385 GB, free: 23.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007572/0.5799, allocations: 410.1 kB / 0.5389 GB, free: 22.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.5801, allocations: 211.8 kB / 0.5391 GB, free: 22.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002209/0.5824, allocations: 3.537 MB / 0.5425 GB, free: 18.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.5824, allocations: 39.94 kB / 0.5425 GB, free: 18.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.366e-06/0.5824, allocations: 2.438 kB / 0.5426 GB, free: 18.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0084/0.5908, allocations: 2.058 MB / 0.5446 GB, free: 16.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.5909, allocations: 55.84 kB / 0.5446 GB, free: 16.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.5911, allocations: 304.2 kB / 0.5449 GB, free: 16.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.5912, allocations: 46.02 kB / 0.5449 GB, free: 16.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.5913, allocations: 226.5 kB / 0.5452 GB, free: 16.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/0.5914, allocations: 194.4 kB / 0.5454 GB, free: 16.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.5914, allocations: 15.19 kB / 0.5454 GB, free: 16.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.669e-05/0.5915, allocations: 353.2 kB / 0.5457 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.5917, allocations: 175.8 kB / 0.5459 GB, free: 15.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.592, allocations: 327.6 kB / 0.5462 GB, free: 15.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005805/0.5926, allocations: 0.5413 MB / 0.5467 GB, free: 15.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5926, allocations: 7 kB / 0.5467 GB, free: 15.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001017/0.5936, allocations: 0.6685 MB / 0.5474 GB, free: 14.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.5937, allocations: 8 kB / 0.5474 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.5937, allocations: 7.875 kB / 0.5474 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008911/0.6026, allocations: 450.9 kB / 0.5478 GB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.6032, allocations: 140.2 kB / 0.5479 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.6045, allocations: 2.992 MB / 0.5509 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.6049, allocations: 50.48 kB / 0.5509 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-05/0.6049, allocations: 33.73 kB / 0.551 GB, free: 10.92 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002225/0.6052, allocations: 186.4 kB / 0.5511 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.6052, allocations: 43.53 kB / 0.5512 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.6065, allocations: 1.057 MB / 0.5522 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.6065, allocations: 13.42 kB / 0.5522 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.6065, allocations: 3.938 kB / 0.5522 GB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008729/0.6074, allocations: 1.086 MB / 0.5533 GB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.6091, allocations: 1.738 MB / 0.555 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.6091, allocations: 0 / 0.555 GB, free: 7.941 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003462/0.6094, allocations: 97.64 kB / 0.5551 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/0.6124, allocations: 363.9 kB / 0.5554 GB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.6124, allocations: 15.42 kB / 0.5554 GB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004094/0.6128, allocations: 1.139 MB / 0.5565 GB, free: 6.414 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6129, allocations: 8.172 kB / 0.5566 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001148/0.614, allocations: 1.122 MB / 0.5576 GB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.6142, allocations: 147.4 kB / 0.5578 GB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.6142, allocations: 13.94 kB / 0.5578 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002921/0.6145, allocations: 30.48 kB / 0.5578 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.6146, allocations: 31.77 kB / 0.5579 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.6146, allocations: 22.48 kB / 0.5579 GB, free: 5.418 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002145/0.6148, allocations: 246 kB / 0.5581 GB, free: 5.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6149, allocations: 4 kB / 0.5581 GB, free: 5.227 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005268/0.6201, allocations: 0.961 MB / 0.5591 GB, free: 4.336 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.04145/0.6616, allocations: 7.875 MB / 0.5668 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.6631, allocations: 0.6889 MB / 0.5674 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.6632, allocations: 0 / 0.5674 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/0.6638, allocations: 376.4 kB / 0.5678 GB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.6651, allocations: 250.6 kB / 0.568 GB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.6673, allocations: 1.639 MB / 0.5696 GB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.6677, allocations: 0.8676 MB / 0.5705 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.6679, allocations: 53 kB / 0.5705 GB, free: 9.312 MB / 394.7 MB Notification: Performance of SimCode: time 7.21e-07/0.6679, allocations: 3.188 kB / 0.5705 GB, free: 9.312 MB / 394.7 MB Notification: Performance of Templates: time 0.04784/0.7157, allocations: 38.67 MB / 0.6083 GB, free: 3.246 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches