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.0009987/0.0009987, allocations: 195.6 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 226.6 MB / 244.3 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007598/0.0007601, allocations: 95.78 kB / 296.4 MB, free: 6.793 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002046/0.0002046, allocations: 4 kB / 356.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1711, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02157/0.1927, allocations: 34.79 MB / 442.3 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02472/0.2174, allocations: 28.13 MB / 470.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002885/0.2177, allocations: 7.938 kB / 470.4 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007103/0.2184, allocations: 318.3 kB / 470.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007715/0.2192, allocations: 493.3 kB / 471.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00776/0.227, allocations: 3.838 MB / 475 MB, free: 8.121 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.2284, allocations: 1.702 MB / 476.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2286, allocations: 129.8 kB / 476.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006764/0.2293, allocations: 478.2 kB / 477.3 MB, free: 5.816 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004862/0.2298, allocations: 422.3 kB / 477.8 MB, free: 5.402 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.2299, allocations: 28 kB / 477.8 MB, free: 5.375 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2033/0.4332, allocations: 51.74 MB / 0.5171 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.4334, allocations: 117.9 kB / 0.5172 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001933/0.4336, allocations: 141 kB / 0.5174 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02855/0.4622, allocations: 13.88 MB / 0.5309 GB, free: 29.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4622, allocations: 1 kB / 0.5309 GB, free: 29.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4622, allocations: 0 / 0.5309 GB, free: 29.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.4622, allocations: 1 kB / 0.5309 GB, free: 29.73 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.005959/0.4682, allocations: 1.325 MB / 0.5322 GB, free: 28.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.4682, allocations: 13.03 kB / 0.5322 GB, free: 28.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005215/0.4688, allocations: 90.7 kB / 0.5323 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.4691, allocations: 375.8 kB / 0.5327 GB, free: 28.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.4691, allocations: 35.12 kB / 0.5327 GB, free: 28.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.4692, allocations: 47.12 kB / 0.5327 GB, free: 28.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.4701, allocations: 0.6151 MB / 0.5333 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.4701, allocations: 2.969 kB / 0.5333 GB, free: 27.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.4701, allocations: 24.88 kB / 0.5334 GB, free: 27.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.4702, allocations: 14.36 kB / 0.5334 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007315/0.4709, allocations: 0.5235 MB / 0.5339 GB, free: 27.36 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.002699/0.4736, allocations: 3.808 MB / 0.5376 GB, free: 23.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006729/0.4743, allocations: 408.5 kB / 0.538 GB, free: 23.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002233/0.4745, allocations: 209.3 kB / 0.5382 GB, free: 23.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002085/0.4766, allocations: 3.547 MB / 0.5417 GB, free: 19.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.4766, allocations: 34.5 kB / 0.5417 GB, free: 19.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 1.513e-06/0.4766, allocations: 2 kB / 0.5417 GB, free: 19.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.007445/0.4841, allocations: 2.039 MB / 0.5437 GB, free: 17.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.4841, allocations: 63.59 kB / 0.5438 GB, free: 17.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.4844, allocations: 304.6 kB / 0.544 GB, free: 17.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.4845, allocations: 39.27 kB / 0.5441 GB, free: 17.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4846, allocations: 236.1 kB / 0.5443 GB, free: 17.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.4847, allocations: 186.5 kB / 0.5445 GB, free: 16.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.457e-05/0.4848, allocations: 9.688 kB / 0.5445 GB, free: 16.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.038e-05/0.4848, allocations: 355.5 kB / 0.5448 GB, free: 16.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.4851, allocations: 177.4 kB / 0.545 GB, free: 16.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000344/0.4855, allocations: 326.2 kB / 0.5453 GB, free: 16.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.4858, allocations: 229.3 kB / 0.5455 GB, free: 16.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4859, allocations: 3.734 kB / 0.5455 GB, free: 16.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001144/0.487, allocations: 0.6714 MB / 0.5462 GB, free: 15.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.487, allocations: 8 kB / 0.5462 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.4871, allocations: 8.984 kB / 0.5462 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009911/0.497, allocations: 448.3 kB / 0.5466 GB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005517/0.4975, allocations: 143.4 kB / 0.5468 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.4988, allocations: 2.991 MB / 0.5497 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003659/0.4992, allocations: 47.52 kB / 0.5497 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.4993, allocations: 34.86 kB / 0.5498 GB, free: 11.94 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.0001862/0.4995, allocations: 188.3 kB / 0.55 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.571e-05/0.4995, allocations: 44.75 kB / 0.55 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.5008, allocations: 1.059 MB / 0.551 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.5009, allocations: 7.984 kB / 0.551 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.5009, allocations: 4 kB / 0.551 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000803/0.5017, allocations: 1.084 MB / 0.5521 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.5032, allocations: 1.734 MB / 0.5538 GB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.5032, allocations: 7.984 kB / 0.5538 GB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003351/0.5035, allocations: 96.05 kB / 0.5539 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.5063, allocations: 363.9 kB / 0.5542 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.5064, allocations: 17.22 kB / 0.5543 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003638/0.5067, allocations: 1.146 MB / 0.5554 GB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5067, allocations: 4.188 kB / 0.5554 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.5078, allocations: 1.123 MB / 0.5565 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.838e-05/0.5078, allocations: 143 kB / 0.5566 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.765e-05/0.5079, allocations: 16.3 kB / 0.5566 GB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002678/0.5082, allocations: 30.27 kB / 0.5567 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.5082, allocations: 39.02 kB / 0.5567 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.5083, allocations: 19.23 kB / 0.5567 GB, free: 6.434 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001693/0.5084, allocations: 245.5 kB / 0.5569 GB, free: 6.246 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5084, allocations: 0 / 0.5569 GB, free: 6.246 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004269/0.5127, allocations: 0.9695 MB / 0.5579 GB, free: 5.352 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.03535/0.5481, allocations: 7.867 MB / 0.5656 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.5492, allocations: 0.6892 MB / 0.5662 GB, free: 13.17 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5492, allocations: 0 / 0.5662 GB, free: 13.17 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.5497, allocations: 372.2 kB / 0.5666 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.551, allocations: 259.7 kB / 0.5669 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.5529, allocations: 1.649 MB / 0.5685 GB, free: 11.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.5533, allocations: 0.8676 MB / 0.5693 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.5534, allocations: 50.56 kB / 0.5694 GB, free: 10.32 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5535, allocations: 0 / 0.5694 GB, free: 10.32 MB / 394.7 MB Notification: Performance of Templates: time 0.04081/0.5943, allocations: 38.66 MB / 0.6071 GB, free: 4.266 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