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.001828/0.001828, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002363/0.002363, allocations: 215.7 kB / 23.75 MB, free: 4.668 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.001623/0.001623, allocations: 51.92 kB / 379.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2471, allocations: 53.37 MB / 432.5 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01874/0.2658, allocations: 13.56 MB / 446 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01982/0.2857, allocations: 15.65 MB / 461.7 MB, free: 9.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.2858, allocations: 4 kB / 461.7 MB, free: 9.301 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004133/0.2863, allocations: 87.47 kB / 461.8 MB, free: 9.215 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003562/0.2866, allocations: 111.3 kB / 461.9 MB, free: 9.105 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01572/0.3023, allocations: 5.985 MB / 467.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005548/0.3029, allocations: 342.6 kB / 468.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.017e-05/0.303, allocations: 13.8 kB / 468.2 MB, free: 2.773 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005033/0.3035, allocations: 238.9 kB / 468.4 MB, free: 2.539 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.3036, allocations: 115.5 kB / 468.6 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.3037, allocations: 12 kB / 468.6 MB, free: 2.414 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01357/0.3172, allocations: 6.786 MB / 475.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.482e-05/0.3173, allocations: 43.89 kB / 475.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.3175, allocations: 107.5 kB / 475.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008295/0.3258, allocations: 3.913 MB / 479.4 MB, free: 7.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3258, allocations: 0 / 479.4 MB, free: 7.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3258, allocations: 0 / 479.4 MB, free: 7.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.3258, allocations: 0 / 479.4 MB, free: 7.551 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.002609/0.3284, allocations: 0.9506 MB / 480.4 MB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3285, allocations: 8.031 kB / 480.4 MB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00141/0.3299, allocations: 184.6 kB / 480.6 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.3303, allocations: 202.2 kB / 480.8 MB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.3303, allocations: 16.81 kB / 480.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.3304, allocations: 32.06 kB / 480.8 MB, free: 6.109 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003258/0.3336, allocations: 0.9012 MB / 481.7 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3336, allocations: 0 / 481.7 MB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.674e-05/0.3337, allocations: 11.98 kB / 481.7 MB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.415e-06/0.3337, allocations: 4 kB / 481.7 MB, free: 5.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003401/0.3371, allocations: 0.9734 MB / 482.7 MB, free: 4.199 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.001831/0.3389, allocations: 1.307 MB / 484 MB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002693/0.3416, allocations: 0.7325 MB / 484.7 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003049/0.3419, allocations: 149.6 kB / 484.9 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07422/0.4161, allocations: 20.55 MB / 0.4936 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.4162, allocations: 42.55 kB / 0.4936 GB, free: 13.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.514e-06/0.4162, allocations: 0 / 0.4936 GB, free: 13.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005526/0.4217, allocations: 1.356 MB / 0.4949 GB, free: 11.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.4218, allocations: 55.41 kB / 0.495 GB, free: 11.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.4219, allocations: 125.7 kB / 0.4951 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.439e-05/0.422, allocations: 29.7 kB / 0.4951 GB, free: 11.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.534e-05/0.422, allocations: 128.8 kB / 0.4953 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.4222, allocations: 119 kB / 0.4954 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.4225, allocations: 165.5 kB / 0.4955 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.4227, allocations: 326.8 kB / 0.4959 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006781/0.4233, allocations: 343.6 kB / 0.4962 GB, free: 10.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007707/0.4241, allocations: 403.5 kB / 0.4966 GB, free: 10.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.4256, allocations: 0.7114 MB / 0.4973 GB, free: 9.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.4256, allocations: 0 / 0.4973 GB, free: 9.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001993/0.4276, allocations: 0.8758 MB / 0.4981 GB, free: 8.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.4276, allocations: 4 kB / 0.4981 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.4276, allocations: 7.938 kB / 0.4981 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.4276, allocations: 4 kB / 0.4981 GB, free: 8.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007101/0.4283, allocations: 171.8 kB / 0.4983 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.4283, allocations: 4 kB / 0.4983 GB, free: 8.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003687/0.4287, allocations: 36.08 kB / 0.4983 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.4288, allocations: 67.92 kB / 0.4984 GB, free: 8.238 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.000237/0.4291, allocations: 133.8 kB / 0.4985 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.4292, allocations: 15.91 kB / 0.4985 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0092/0.4384, allocations: 8.513 MB / 0.5069 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.95e-05/0.4385, allocations: 24.34 kB / 0.5069 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4385, allocations: 3.984 kB / 0.5069 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4385, allocations: 3.984 kB / 0.5069 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.4422, allocations: 3.771 MB / 0.5106 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.4422, allocations: 7.875 kB / 0.5106 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007092/0.4429, allocations: 107.8 kB / 0.5107 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.754e-06/0.4429, allocations: 4 kB / 0.5107 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.014e-05/0.443, allocations: 15.92 kB / 0.5107 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.443, allocations: 0 / 0.5107 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.443, allocations: 4 kB / 0.5107 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.4458, allocations: 1.882 MB / 0.5125 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/0.4458, allocations: 71.33 kB / 0.5126 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.4459, allocations: 7.938 kB / 0.5126 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003318/0.4462, allocations: 20.06 kB / 0.5126 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.324e-05/0.4463, allocations: 31.94 kB / 0.5127 GB, free: 9.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.4464, allocations: 11.98 kB / 0.5127 GB, free: 9.312 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.4464, allocations: 91.27 kB / 0.5128 GB, free: 9.223 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4464, allocations: 0 / 0.5128 GB, free: 9.223 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00269/0.4491, allocations: 1.002 MB / 0.5137 GB, free: 8.219 MB / 430.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.004579/0.4537, allocations: 1.153 MB / 0.5149 GB, free: 7.055 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/0.4555, allocations: 0.8919 MB / 0.5157 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4555, allocations: 0 / 0.5157 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000839/0.4563, allocations: 0.5244 MB / 0.5162 GB, free: 5.641 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006637/0.457, allocations: 84.25 kB / 0.5163 GB, free: 5.559 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.4591, allocations: 1.357 MB / 0.5177 GB, free: 4.172 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.4595, allocations: 0.8575 MB / 0.5185 GB, free: 3.289 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002208/0.4618, allocations: 1.784 MB / 0.5202 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003585/0.4621, allocations: 83.36 kB / 0.5203 GB, free: 1.422 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4621, allocations: 0 / 0.5203 GB, free: 1.422 MB / 430.1 MB Notification: Performance of Templates: time 0.2385/0.7006, allocations: 41.85 MB / 0.5612 GB, free: 91.99 MB / 446.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.619920789031312]