Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 80.8 kB / 21.49 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 170.2 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9493/0.9493, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 276.4 MB, free: 14.33 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.303e-05/2.447e-05, allocations: 2.312 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01277/0.01279, allocations: 13.47 MB / 289.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1127/0.1255, allocations: 15.16 MB / 305 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.1256, allocations: 1.156 kB / 305 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.1258, allocations: 74.14 kB / 305.1 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.126, allocations: 120.6 kB / 305.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008631/0.1346, allocations: 5.441 MB / 310.7 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.1349, allocations: 346.6 kB / 311 MB, free: 8.785 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.1349, allocations: 13.73 kB / 311 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.1352, allocations: 266.2 kB / 311.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1354, allocations: 90.98 kB / 311.4 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.876e-05/0.1354, allocations: 18.03 kB / 311.4 MB, free: 8.625 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006498/0.1419, allocations: 6.97 MB / 318.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.125e-05/0.1419, allocations: 43.83 kB / 318.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.005e-05/0.142, allocations: 83.89 kB / 318.5 MB, free: 4.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003619/0.1456, allocations: 4.931 MB / 323.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1456, allocations: 0 / 323.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1456, allocations: 0 / 323.4 MB, free: 15.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1456, allocations: 0 / 323.4 MB, free: 15.5 MB / 282.7 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.001315/0.1469, allocations: 0.9186 MB / 324.3 MB, free: 14.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.489e-05/0.1469, allocations: 8.031 kB / 324.3 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008472/0.1478, allocations: 320 kB / 324.7 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.1479, allocations: 176.4 kB / 324.8 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.148, allocations: 24.88 kB / 324.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.148, allocations: 20.38 kB / 324.9 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.1494, allocations: 1.015 MB / 325.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1494, allocations: 4 kB / 325.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.1494, allocations: 11.94 kB / 325.9 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.1494, allocations: 8 kB / 325.9 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.1507, allocations: 0.7685 MB / 326.7 MB, free: 12.16 MB / 282.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.0006757/0.1514, allocations: 0.7593 MB / 327.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1525, allocations: 0.726 MB / 328.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.1526, allocations: 72.83 kB / 328.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3208/0.4734, allocations: 132.5 MB / 460.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.4734, allocations: 34.56 kB / 460.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.225e-06/0.4734, allocations: 0 / 460.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002155/0.4756, allocations: 1.244 MB / 462 MB, free: 101.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.663e-05/0.4756, allocations: 58.41 kB / 462.1 MB, free: 101.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.651e-05/0.4756, allocations: 126 kB / 462.2 MB, free: 101 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.4757, allocations: 35.55 kB / 462.2 MB, free: 101 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.016e-05/0.4757, allocations: 114.3 kB / 462.4 MB, free: 100.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.03e-05/0.4758, allocations: 126.1 kB / 462.5 MB, free: 100.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.4759, allocations: 121.2 kB / 462.6 MB, free: 100.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.866e-05/0.4759, allocations: 328 kB / 462.9 MB, free: 100.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.4761, allocations: 278.6 kB / 463.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.4763, allocations: 356.9 kB / 463.5 MB, free: 99.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003959/0.4767, allocations: 0.6318 MB / 464.2 MB, free: 99.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4767, allocations: 0.6562 kB / 464.2 MB, free: 99.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004768/0.4772, allocations: 0.6579 MB / 464.8 MB, free: 98.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.4772, allocations: 7.75 kB / 464.8 MB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.4772, allocations: 4 kB / 464.8 MB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.4772, allocations: 4 kB / 464.8 MB, free: 98.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003164/0.4775, allocations: 166.6 kB / 465 MB, free: 98.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.968e-06/0.4775, allocations: 5.641 kB / 465 MB, free: 98.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.4777, allocations: 28.77 kB / 465 MB, free: 98.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.4777, allocations: 41.92 kB / 465.1 MB, free: 98.39 MB / 378.7 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.dew.phase,medium.bubble.phase,medium.bubble2.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.0001174/0.4778, allocations: 138.2 kB / 465.2 MB, free: 98.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.855e-05/0.4779, allocations: 21.23 kB / 465.2 MB, free: 98.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.4799, allocations: 4.431 MB / 469.7 MB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.4799, allocations: 26.77 kB / 469.7 MB, free: 93.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.4799, allocations: 7.938 kB / 469.7 MB, free: 93.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4799, allocations: 6.828 kB / 469.7 MB, free: 93.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007021/0.4807, allocations: 1.304 MB / 471 MB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.4807, allocations: 4 kB / 471 MB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.4809, allocations: 106.6 kB / 471.1 MB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4809, allocations: 0 / 471.1 MB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.4809, allocations: 11.69 kB / 471.1 MB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4809, allocations: 0 / 471.1 MB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4809, allocations: 2.875 kB / 471.1 MB, free: 93.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006433/0.4816, allocations: 1.027 MB / 472.2 MB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.089e-05/0.4816, allocations: 72.52 kB / 472.2 MB, free: 91.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.4816, allocations: 6.438 kB / 472.2 MB, free: 91.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.4818, allocations: 11.17 kB / 472.3 MB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.163e-05/0.4818, allocations: 34.69 kB / 472.3 MB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.4818, allocations: 4 kB / 472.3 MB, free: 91.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.775e-05/0.4819, allocations: 28.23 kB / 472.3 MB, free: 91.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.4819, allocations: 0 / 472.3 MB, free: 91.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001445/0.4833, allocations: 1.002 MB / 473.3 MB, free: 90.95 MB / 378.7 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.002266/0.4856, allocations: 1.367 MB / 474.7 MB, free: 89.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004607/0.486, allocations: 0.6005 MB / 475.3 MB, free: 89.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.486, allocations: 4 kB / 475.3 MB, free: 89.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.4862, allocations: 268.2 kB / 475.6 MB, free: 88.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.4865, allocations: 91.67 kB / 475.6 MB, free: 88.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.4877, allocations: 1.098 MB / 476.7 MB, free: 87.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.869e-05/0.4877, allocations: 152.6 kB / 476.9 MB, free: 87.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008957/0.4886, allocations: 1.777 MB / 478.7 MB, free: 85.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.489, allocations: 169.7 kB / 478.8 MB, free: 85.78 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.489, allocations: 4 kB / 478.8 MB, free: 85.78 MB / 378.7 MB Notification: Performance of Templates: time 0.03215/0.5211, allocations: 48.6 MB / 0.5151 GB, free: 37.5 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5016382983885705]