Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 106.6 kB / 17.74 MB, free: 5.336 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.001336/0.001336, allocations: 194.9 kB / 18.68 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.314/1.314, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009925/0.0009925, allocations: 43.92 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2124, allocations: 49.44 MB / 403.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01395/0.2264, allocations: 13.33 MB / 417 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.2422, allocations: 15.56 MB / 432.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.733e-05/0.2423, allocations: 0 / 432.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.2427, allocations: 87.47 kB / 432.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002955/0.243, allocations: 115.2 kB / 432.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.2557, allocations: 5.964 MB / 438.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003999/0.2561, allocations: 338.6 kB / 439.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.387e-05/0.2562, allocations: 13.69 kB / 439.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.2567, allocations: 235 kB / 439.3 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2568, allocations: 111.5 kB / 439.4 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.129e-05/0.2569, allocations: 12 kB / 439.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01099/0.2679, allocations: 6.759 MB / 446.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.744e-05/0.268, allocations: 39.89 kB / 446.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.2681, allocations: 103.5 kB / 446.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006139/0.2742, allocations: 3.895 MB / 450.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2742, allocations: 0 / 450.3 MB, free: 9.238 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2743, allocations: 4 kB / 450.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.2743, allocations: 0 / 450.3 MB, free: 9.234 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002438/0.2767, allocations: 0.9908 MB / 451.2 MB, free: 8.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.2768, allocations: 12.03 kB / 451.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.2782, allocations: 168.6 kB / 451.4 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.2786, allocations: 271.8 kB / 451.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.2786, allocations: 20.81 kB / 451.7 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.2787, allocations: 28.12 kB / 451.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003282/0.282, allocations: 0.9012 MB / 452.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.282, allocations: 3.938 kB / 452.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.282, allocations: 8 kB / 452.7 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2821, allocations: 8 kB / 452.7 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003404/0.2855, allocations: 0.9657 MB / 453.6 MB, free: 5.758 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.00154/0.287, allocations: 1.342 MB / 455 MB, free: 4.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002649/0.2897, allocations: 0.7325 MB / 455.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.29, allocations: 160.8 kB / 455.9 MB, free: 3.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07809/0.3681, allocations: 37.56 MB / 493.4 MB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.3681, allocations: 30.56 kB / 493.4 MB, free: 9.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.384e-06/0.3681, allocations: 0 / 493.4 MB, free: 9.336 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005418/0.3736, allocations: 1.365 MB / 494.8 MB, free: 7.965 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.487e-05/0.3736, allocations: 55.41 kB / 494.9 MB, free: 7.898 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.224e-05/0.3737, allocations: 117.8 kB / 495 MB, free: 7.773 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-05/0.3738, allocations: 33.7 kB / 495 MB, free: 7.734 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.3738, allocations: 112.7 kB / 495.1 MB, free: 7.621 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.374, allocations: 114.3 kB / 495.2 MB, free: 7.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.3743, allocations: 173.2 kB / 495.4 MB, free: 7.332 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3744, allocations: 330.8 kB / 495.7 MB, free: 7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006321/0.375, allocations: 331.8 kB / 496 MB, free: 6.676 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007157/0.3757, allocations: 411.3 kB / 496.4 MB, free: 6.246 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.3771, allocations: 0.7075 MB / 497.2 MB, free: 5.512 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3771, allocations: 0 / 497.2 MB, free: 5.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001845/0.3789, allocations: 0.8723 MB / 498 MB, free: 4.633 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.379, allocations: 11.11 kB / 498 MB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.379, allocations: 4 kB / 498 MB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.379, allocations: 7.938 kB / 498.1 MB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006847/0.3797, allocations: 184 kB / 498.2 MB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.3797, allocations: 7.938 kB / 498.2 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3801, allocations: 35.67 kB / 498.3 MB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.3802, allocations: 67.92 kB / 498.3 MB, free: 4.324 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.3804, allocations: 133.8 kB / 498.5 MB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.3806, allocations: 19.8 kB / 498.5 MB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007161/0.3878, allocations: 7.958 MB / 0.4946 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.3878, allocations: 7.984 kB / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3878, allocations: 0 / 0.4946 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.489e-05/0.3879, allocations: 140.1 kB / 0.4947 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.388, allocations: 4 kB / 0.4947 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.3884, allocations: 63.89 kB / 0.4948 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.683e-05/0.3886, allocations: 27.95 kB / 0.4948 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001781/0.3903, allocations: 1.154 MB / 0.4959 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00227/0.3926, allocations: 1.755 MB / 0.4977 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000661/0.3933, allocations: 0.5295 MB / 0.4982 GB, free: 8.473 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.922e-05/0.3934, allocations: 99.14 kB / 0.4983 GB, free: 8.375 MB / 430.1 MB Notification: Performance of Backend: time 3.81e-07/0.3934, allocations: 4 kB / 0.4983 GB, free: 8.371 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006173/0.3995, allocations: 1.805 MB / 0.5 GB, free: 6.555 MB / 430.1 MB Notification: Performance of SimCode: time 0.001319/0.4009, allocations: 1.292 MB / 0.5013 GB, free: 5.219 MB / 430.1 MB Notification: Performance of Templates: time 0.2117/0.6126, allocations: 44.38 MB / 0.5446 GB, free: 139.9 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches