Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00175/0.00175, allocations: 105.4 kB / 19.8 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002092/0.002092, allocations: 213.4 kB / 22.99 MB, free: 5.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 230.2 MB / 256.2 MB, free: 8.551 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 67.89 kB / 377.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2294, allocations: 53.32 MB / 430.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01725/0.2466, allocations: 13.56 MB / 444.2 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01837/0.265, allocations: 15.65 MB / 459.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.2652, allocations: 0 / 459.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003375/0.2655, allocations: 87.47 kB / 459.9 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/0.2658, allocations: 111.3 kB / 460 MB, free: 9.723 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01429/0.2801, allocations: 5.978 MB / 466 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000473/0.2806, allocations: 346.6 kB / 466.3 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.2806, allocations: 5.688 kB / 466.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004452/0.2811, allocations: 242.9 kB / 466.6 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.2812, allocations: 99.66 kB / 466.7 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.2812, allocations: 20 kB / 466.7 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.2932, allocations: 6.778 MB / 473.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.938e-05/0.2933, allocations: 43.88 kB / 473.5 MB, free: 12.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.2934, allocations: 103.5 kB / 473.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006782/0.3002, allocations: 3.921 MB / 477.5 MB, free: 8.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3002, allocations: 0 / 477.5 MB, free: 8.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3002, allocations: 0 / 477.5 MB, free: 8.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3002, allocations: 0 / 477.5 MB, free: 8.191 MB / 382.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.00239/0.3026, allocations: 1.018 MB / 478.6 MB, free: 7.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.3027, allocations: 8.031 kB / 478.6 MB, free: 7.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.3041, allocations: 180.6 kB / 478.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.3044, allocations: 268 kB / 479 MB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.3045, allocations: 20.81 kB / 479 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.684e-05/0.3045, allocations: 20.12 kB / 479 MB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003167/0.3077, allocations: 0.905 MB / 480 MB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.3077, allocations: 0 / 480 MB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.3077, allocations: 12 kB / 480 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3077, allocations: 11.98 kB / 480 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/0.311, allocations: 0.9656 MB / 480.9 MB, free: 4.684 MB / 382.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.001728/0.3128, allocations: 1.347 MB / 482.3 MB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002635/0.3154, allocations: 0.7286 MB / 483 MB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.3157, allocations: 152.8 kB / 483.2 MB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0809/0.3966, allocations: 42.18 MB / 0.513 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.3966, allocations: 38.56 kB / 0.5131 GB, free: 2.715 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 1.943e-06/0.3966, allocations: 4 kB / 0.5131 GB, free: 2.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005458/0.4021, allocations: 1.37 MB / 0.5144 GB, free: 1.336 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.4021, allocations: 55.41 kB / 0.5145 GB, free: 1.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.4022, allocations: 113.8 kB / 0.5146 GB, free: 1.148 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.566e-05/0.4023, allocations: 29.7 kB / 0.5146 GB, free: 1.113 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.307e-05/0.4024, allocations: 116.9 kB / 0.5147 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.4025, allocations: 130.9 kB / 0.5148 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/0.4028, allocations: 161.6 kB / 0.515 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.403, allocations: 330.8 kB / 0.5153 GB, free: 380 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006606/0.4036, allocations: 331.6 kB / 0.5156 GB, free: 48 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007865/0.4044, allocations: 415.5 kB / 0.516 GB, free: 15.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.4058, allocations: 0.7025 MB / 0.5167 GB, free: 14.88 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4058, allocations: 0 / 0.5167 GB, free: 14.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001945/0.4078, allocations: 0.8801 MB / 0.5176 GB, free: 14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4078, allocations: 7.984 kB / 0.5176 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4078, allocations: 7.938 kB / 0.5176 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.4078, allocations: 4 kB / 0.5176 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007172/0.4085, allocations: 171.8 kB / 0.5177 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.4085, allocations: 4 kB / 0.5177 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.4089, allocations: 35.77 kB / 0.5178 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.409, allocations: 68.12 kB / 0.5178 GB, free: 13.7 MB / 446.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.0002095/0.4092, allocations: 138.1 kB / 0.518 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.4094, allocations: 19.89 kB / 0.518 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00841/0.4178, allocations: 7.974 MB / 0.5258 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.9e-05/0.4178, allocations: 31.95 kB / 0.5258 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4178, allocations: 0 / 0.5258 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.4178, allocations: 7.984 kB / 0.5258 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.4213, allocations: 3.6 MB / 0.5293 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.4213, allocations: 0 / 0.5293 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006906/0.422, allocations: 115.8 kB / 0.5295 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.422, allocations: 7.938 kB / 0.5295 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.621e-05/0.422, allocations: 15.92 kB / 0.5295 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.422, allocations: 0 / 0.5295 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.422, allocations: 0 / 0.5295 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.4246, allocations: 1.839 MB / 0.5313 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.4248, allocations: 148.4 kB / 0.5314 GB, free: 15.49 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.465e-05/0.4248, allocations: 15.88 kB / 0.5314 GB, free: 15.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000306/0.4251, allocations: 8 kB / 0.5314 GB, free: 15.47 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4252, allocations: 36.02 kB / 0.5315 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.4253, allocations: 15.98 kB / 0.5315 GB, free: 15.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.954e-05/0.4253, allocations: 91.27 kB / 0.5316 GB, free: 15.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4253, allocations: 0 / 0.5316 GB, free: 15.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002517/0.4279, allocations: 0.998 MB / 0.5325 GB, free: 14.33 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003811/0.4317, allocations: 1.145 MB / 0.5337 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.4334, allocations: 0.8806 MB / 0.5345 GB, free: 12.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4334, allocations: 8.062 kB / 0.5345 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007761/0.4342, allocations: 0.5168 MB / 0.535 GB, free: 11.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.4348, allocations: 87.84 kB / 0.5351 GB, free: 11.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.4368, allocations: 1.34 MB / 0.5364 GB, free: 10.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.4373, allocations: 0.8497 MB / 0.5373 GB, free: 9.434 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002134/0.4394, allocations: 1.787 MB / 0.539 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.4398, allocations: 91.34 kB / 0.5391 GB, free: 7.551 MB / 462.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4398, allocations: 0 / 0.5391 GB, free: 7.551 MB / 462.1 MB Notification: Performance of Templates: time 0.2175/0.6573, allocations: 41.54 MB / 0.5797 GB, free: 98.32 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.188313262537122]