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.001055/0.001055, allocations: 110.9 kB / 17.68 MB, free: 5.332 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.001015/0.001015, allocations: 192 kB / 18.62 MB, free: 4.41 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.28/1.28, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009928/0.0009929, allocations: 48.55 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.0848, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1885/0.2734, allocations: 37.62 MB / 389.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02941/0.3028, allocations: 30.61 MB / 419.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004797/0.3033, allocations: 5.219 kB / 419.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.3044, allocations: 406.1 kB / 420.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.3054, allocations: 0.5167 MB / 420.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0129/0.3183, allocations: 5.127 MB / 425.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.3199, allocations: 1.363 MB / 427.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.3202, allocations: 167.2 kB / 427.3 MB, free: 7.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006644/0.3208, allocations: 0.5294 MB / 427.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004702/0.3213, allocations: 454.2 kB / 428.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.621e-05/0.3214, allocations: 52 kB / 428.3 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02083/0.3422, allocations: 12.8 MB / 441.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.3426, allocations: 147.5 kB / 441.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004867/0.3431, allocations: 318.8 kB / 441.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03166/0.3747, allocations: 14.91 MB / 456.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.202e-05/0.3748, allocations: 8 kB / 456.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3748, allocations: 0 / 456.5 MB, free: 10.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3748, allocations: 0 / 456.5 MB, free: 10.58 MB / 366.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.007938/0.3828, allocations: 1.419 MB / 457.9 MB, free: 9.109 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3828, allocations: 15.89 kB / 457.9 MB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007346/0.3836, allocations: 87.31 kB / 458 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005636/0.3841, allocations: 397.9 kB / 458.4 MB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.3842, allocations: 29 kB / 458.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.3842, allocations: 48 kB / 458.5 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.3854, allocations: 0.6205 MB / 459.1 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.3854, allocations: 7.922 kB / 459.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/0.3855, allocations: 23.94 kB / 459.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.3855, allocations: 12 kB / 459.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.3865, allocations: 0.5229 MB / 459.7 MB, free: 7.27 MB / 366.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.004199/0.3907, allocations: 3.807 MB / 463.5 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.3916, allocations: 412.2 kB / 463.9 MB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002991/0.3919, allocations: 209.5 kB / 464.1 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003073/0.395, allocations: 3.459 MB / 467.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3951, allocations: 42.94 kB / 467.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.184e-06/0.3951, allocations: 3.938 kB / 467.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.009186/0.4043, allocations: 2.023 MB / 469.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.4043, allocations: 59.84 kB / 469.7 MB, free: 12.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.4047, allocations: 308.4 kB / 470 MB, free: 11.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.297e-05/0.4047, allocations: 37.7 kB / 470 MB, free: 11.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.4048, allocations: 232.5 kB / 470.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.405, allocations: 189.3 kB / 470.4 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.4052, allocations: 118.2 kB / 470.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4053, allocations: 354.8 kB / 470.9 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.4056, allocations: 181.2 kB / 471.1 MB, free: 10.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.406, allocations: 324.1 kB / 471.4 MB, free: 10.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000748/0.4068, allocations: 0.5493 MB / 471.9 MB, free: 9.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.4068, allocations: 3.938 kB / 471.9 MB, free: 9.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001209/0.408, allocations: 0.6735 MB / 472.6 MB, free: 9.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.408, allocations: 4.562 kB / 472.6 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.408, allocations: 11.94 kB / 472.6 MB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009527/0.4176, allocations: 447 kB / 473 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005476/0.4181, allocations: 139.8 kB / 473.2 MB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.4202, allocations: 3.086 MB / 476.3 MB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.4204, allocations: 19.94 kB / 476.3 MB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.4205, allocations: 28 kB / 476.3 MB, free: 5.102 MB / 382.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.0002383/0.4207, allocations: 201.5 kB / 476.5 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.4209, allocations: 43.53 kB / 476.6 MB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.4224, allocations: 1.046 MB / 477.6 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.4224, allocations: 8 kB / 477.6 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.4224, allocations: 0 / 477.6 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001149/0.4235, allocations: 1.099 MB / 478.7 MB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.4257, allocations: 1.733 MB / 480.4 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4257, allocations: 0 / 480.4 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.4261, allocations: 103.9 kB / 480.5 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002999/0.4291, allocations: 352.9 kB / 480.9 MB, free: 368 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.74e-05/0.4291, allocations: 16.06 kB / 480.9 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000643/0.4298, allocations: 1.151 MB / 482.1 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4298, allocations: 0 / 482.1 MB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.4312, allocations: 1.128 MB / 483.2 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4313, allocations: 120.5 kB / 483.3 MB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.576e-05/0.4314, allocations: 19.84 kB / 483.3 MB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.4317, allocations: 15.94 kB / 483.3 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.4317, allocations: 32.52 kB / 483.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.4318, allocations: 27.98 kB / 483.4 MB, free: 13.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002455/0.432, allocations: 247 kB / 483.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.432, allocations: 0 / 483.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004601/0.4366, allocations: 0.9644 MB / 484.6 MB, free: 12.56 MB / 398.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.02697/0.4636, allocations: 7.864 MB / 492.5 MB, free: 4.672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.4652, allocations: 0.7157 MB / 493.2 MB, free: 3.949 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4652, allocations: 0 / 493.2 MB, free: 3.949 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006053/0.4658, allocations: 371.5 kB / 493.5 MB, free: 3.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.4671, allocations: 261.4 kB / 493.8 MB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.4691, allocations: 1.317 MB / 495.1 MB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.4695, allocations: 0.8687 MB / 496 MB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000442/0.47, allocations: 237.3 kB / 496.2 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.4701, allocations: 51.42 kB / 496.3 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of SimCode: time 1.953e-06/0.4701, allocations: 0 / 496.3 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of Templates: time 0.04637/0.5165, allocations: 36.03 MB / 0.5198 GB, free: 12.83 MB / 446.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 -s cvode -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