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.001322/0.001322, allocations: 127.4 kB / 17.79 MB, free: 5.246 MB / 14.72 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.001359/0.001359, allocations: 208.3 kB / 20.75 MB, free: 2.297 MB / 14.72 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 1.49/1.49, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001582/0.001582, allocations: 47.94 kB / 374.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1056, allocations: 53.32 MB / 427.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2083/0.3139, allocations: 13.49 MB / 441.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01859/0.3325, allocations: 15.61 MB / 456.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001987/0.3327, allocations: 1.188 kB / 456.7 MB, free: 9.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.3331, allocations: 83.38 kB / 456.8 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004399/0.3335, allocations: 114.7 kB / 456.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01838/0.3519, allocations: 5.974 MB / 462.9 MB, free: 5.977 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005564/0.3524, allocations: 342.9 kB / 463.2 MB, free: 5.781 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.377e-05/0.3525, allocations: 11.17 kB / 463.2 MB, free: 5.777 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004898/0.353, allocations: 244.8 kB / 463.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.3532, allocations: 103.8 kB / 463.6 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.161e-05/0.3532, allocations: 21.55 kB / 463.6 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/0.3679, allocations: 6.768 MB / 470.4 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.368, allocations: 45.08 kB / 470.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003281/0.3684, allocations: 101.4 kB / 470.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01308/0.3814, allocations: 3.929 MB / 474.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3815, allocations: 0 / 474.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3815, allocations: 1.094 kB / 474.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3815, allocations: 0 / 474.4 MB, free: 15.5 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.003378/0.3848, allocations: 1.025 MB / 475.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3849, allocations: 9.406 kB / 475.5 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.3863, allocations: 186.2 kB / 475.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003191/0.3867, allocations: 255.8 kB / 475.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.3867, allocations: 19.06 kB / 475.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.766e-05/0.3867, allocations: 22.03 kB / 476 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003313/0.39, allocations: 0.9074 MB / 476.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.3901, allocations: 4 kB / 476.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.581e-05/0.3901, allocations: 10.75 kB / 476.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3901, allocations: 5.5 kB / 476.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003505/0.3936, allocations: 0.9711 MB / 477.8 MB, free: 13.21 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.001735/0.3954, allocations: 1.335 MB / 479.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002854/0.3982, allocations: 0.7257 MB / 479.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.3985, allocations: 156.7 kB / 480.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1042/0.5027, allocations: 42.18 MB / 0.51 GB, free: 11.78 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.5027, allocations: 30.56 kB / 0.51 GB, free: 11.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 3.536e-06/0.5027, allocations: 7.281 kB / 0.51 GB, free: 11.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.006035/0.5088, allocations: 1.361 MB / 0.5114 GB, free: 10.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.5088, allocations: 55.41 kB / 0.5114 GB, free: 10.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.509, allocations: 125.7 kB / 0.5115 GB, free: 10.17 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.462e-05/0.5091, allocations: 33.7 kB / 0.5116 GB, free: 10.13 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.953e-05/0.5092, allocations: 112.9 kB / 0.5117 GB, free: 10.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.5093, allocations: 123 kB / 0.5118 GB, free: 9.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003722/0.5097, allocations: 161.9 kB / 0.512 GB, free: 9.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.5099, allocations: 334.8 kB / 0.5123 GB, free: 9.395 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000756/0.5106, allocations: 339.5 kB / 0.5126 GB, free: 9.062 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008466/0.5115, allocations: 415.2 kB / 0.513 GB, free: 8.629 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.5131, allocations: 0.7064 MB / 0.5137 GB, free: 7.895 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.5131, allocations: 0 / 0.5137 GB, free: 7.895 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002184/0.5152, allocations: 0.8801 MB / 0.5145 GB, free: 7.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.5153, allocations: 4 kB / 0.5145 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.5153, allocations: 7.938 kB / 0.5146 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.5153, allocations: 4 kB / 0.5146 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007461/0.516, allocations: 172.6 kB / 0.5147 GB, free: 6.824 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.5161, allocations: 7.938 kB / 0.5147 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003926/0.5164, allocations: 35.77 kB / 0.5148 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.5166, allocations: 64.12 kB / 0.5148 GB, free: 6.719 MB / 430.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.0002693/0.5168, allocations: 142.6 kB / 0.515 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001736/0.517, allocations: 15.91 kB / 0.515 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00916/0.5262, allocations: 7.97 MB / 0.5228 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.099e-05/0.5262, allocations: 31.95 kB / 0.5228 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5262, allocations: 4 kB / 0.5228 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5262, allocations: 4.859 kB / 0.5228 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003787/0.53, allocations: 3.604 MB / 0.5263 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.53, allocations: 0 / 0.5263 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006999/0.5307, allocations: 103.9 kB / 0.5264 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.5307, allocations: 4 kB / 0.5264 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.5308, allocations: 15.92 kB / 0.5264 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.5308, allocations: 5.25 kB / 0.5264 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.5308, allocations: 4 kB / 0.5264 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/0.5337, allocations: 1.839 MB / 0.5282 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.5338, allocations: 148.4 kB / 0.5284 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.5339, allocations: 11.94 kB / 0.5284 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.5342, allocations: 8 kB / 0.5284 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.5343, allocations: 31.95 kB / 0.5284 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.5344, allocations: 24.05 kB / 0.5285 GB, free: 8.434 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.508e-05/0.5345, allocations: 95.2 kB / 0.5285 GB, free: 8.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5345, allocations: 0 / 0.5285 GB, free: 8.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00401/0.5385, allocations: 1.002 MB / 0.5295 GB, free: 7.336 MB / 446.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.006446/0.5449, allocations: 1.144 MB / 0.5306 GB, free: 6.199 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.5468, allocations: 0.8837 MB / 0.5315 GB, free: 5.316 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5468, allocations: 4.125 kB / 0.5315 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008562/0.5477, allocations: 0.5173 MB / 0.532 GB, free: 4.797 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007597/0.5484, allocations: 86 kB / 0.5321 GB, free: 4.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.5506, allocations: 1.322 MB / 0.5334 GB, free: 3.363 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.5511, allocations: 0.8614 MB / 0.5342 GB, free: 2.477 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002187/0.5533, allocations: 1.78 MB / 0.536 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004004/0.5537, allocations: 91.34 kB / 0.5361 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5537, allocations: 0 / 0.5361 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of Templates: time 0.06205/0.6158, allocations: 41.04 MB / 0.5761 GB, free: 7.531 MB / 494.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.348921835422516]