Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009667/0.0009667, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.0009558/0.0009558, allocations: 167.8 kB / 25.75 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8449/0.8449, allocations: 158.6 MB / 187.6 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 254 MB, free: 4.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.84e-05, allocations: 2.312 kB / 254 MB, free: 4.887 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01763/0.01766, allocations: 13.33 MB / 267.3 MB, free: 7.496 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.03531, allocations: 15.18 MB / 282.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001299/0.03544, allocations: 0 / 282.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.03575, allocations: 71.52 kB / 282.6 MB, free: 8.199 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.03604, allocations: 119.1 kB / 282.7 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01032/0.04637, allocations: 5.964 MB / 288.7 MB, free: 2.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003387/0.04671, allocations: 350.3 kB / 289 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.467e-05/0.04675, allocations: 9.812 kB / 289 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003789/0.04713, allocations: 267 kB / 289.3 MB, free: 1.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.04724, allocations: 83.78 kB / 289.4 MB, free: 1.395 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.04727, allocations: 16 kB / 289.4 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007951/0.05522, allocations: 6.476 MB / 295.9 MB, free: 10.89 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.05529, allocations: 39.89 kB / 295.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.363e-05/0.05538, allocations: 79.83 kB / 296 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006031/0.06141, allocations: 4.896 MB / 300.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.06141, allocations: 8 kB / 300.9 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.06142, allocations: 0 / 300.9 MB, free: 5.863 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.06142, allocations: 0 / 300.9 MB, free: 5.863 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.001979/0.0634, allocations: 1.031 MB / 301.9 MB, free: 4.793 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.06344, allocations: 15.98 kB / 301.9 MB, free: 4.777 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009924/0.06443, allocations: 280 kB / 302.2 MB, free: 4.504 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.06467, allocations: 208.2 kB / 302.4 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.0647, allocations: 16.88 kB / 302.4 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.79e-05/0.06473, allocations: 32.31 kB / 302.4 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.06679, allocations: 1.105 MB / 303.5 MB, free: 3.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.0668, allocations: 3.938 kB / 303.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.724e-05/0.06683, allocations: 15.98 kB / 303.6 MB, free: 3.066 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.06684, allocations: 4 kB / 303.6 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.0686, allocations: 0.9472 MB / 304.5 MB, free: 2.117 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.0009675/0.06956, allocations: 1.057 MB / 305.6 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.07108, allocations: 0.8575 MB / 306.4 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.07119, allocations: 107.6 kB / 306.5 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03513/0.1063, allocations: 19.71 MB / 326.2 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.376e-05/0.1064, allocations: 37.39 kB / 326.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.364e-06/0.1064, allocations: 4 kB / 326.3 MB, free: 12.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.004187/0.1106, allocations: 1.523 MB / 327.8 MB, free: 10.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.1106, allocations: 59.34 kB / 327.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1107, allocations: 173.9 kB / 328 MB, free: 10.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-05/0.1108, allocations: 29.7 kB / 328.1 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.164e-05/0.1108, allocations: 167.5 kB / 328.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.111, allocations: 119 kB / 328.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.1112, allocations: 175.2 kB / 328.5 MB, free: 9.961 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003728/0.1116, allocations: 0.5 MB / 329 MB, free: 9.449 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.1121, allocations: 399.6 kB / 329.4 MB, free: 9.062 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006048/0.1127, allocations: 0.508 MB / 329.9 MB, free: 8.516 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.1139, allocations: 0.8454 MB / 330.8 MB, free: 7.633 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.1139, allocations: 0 / 330.8 MB, free: 7.633 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001613/0.1155, allocations: 1.012 MB / 331.8 MB, free: 6.613 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.1155, allocations: 4 kB / 331.8 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1155, allocations: 4 kB / 331.8 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1155, allocations: 4 kB / 331.8 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.116, allocations: 171.8 kB / 331.9 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.116, allocations: 4 kB / 332 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/0.1162, allocations: 31.73 kB / 332 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.1163, allocations: 72.16 kB / 332.1 MB, free: 6.328 MB / 314.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.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.0001992/0.1165, allocations: 188.4 kB / 332.2 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.1167, allocations: 19.95 kB / 332.3 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005047/0.1217, allocations: 5.295 MB / 337.6 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.5e-05/0.1218, allocations: 31.95 kB / 337.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1218, allocations: 0 / 337.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1218, allocations: 0 / 337.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.1233, allocations: 1.918 MB / 339.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.1233, allocations: 3.984 kB / 339.5 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.1237, allocations: 103.8 kB / 339.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.1237, allocations: 4 kB / 339.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/0.1237, allocations: 8 kB / 339.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1237, allocations: 4 kB / 339.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1237, allocations: 0 / 339.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.1253, allocations: 1.327 MB / 340.9 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.1253, allocations: 75.25 kB / 341 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.1254, allocations: 8 kB / 341 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.1255, allocations: 12 kB / 341 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.326e-05/0.1256, allocations: 31.94 kB / 341.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.1257, allocations: 15.98 kB / 341.1 MB, free: 13.01 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.839e-05/0.1257, allocations: 131.2 kB / 341.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1257, allocations: 0 / 341.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002346/0.1281, allocations: 0.9902 MB / 342.2 MB, free: 11.88 MB / 330.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.003504/0.1316, allocations: 1.266 MB / 343.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.1327, allocations: 0.8165 MB / 344.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1327, allocations: 0 / 344.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.1332, allocations: 363.4 kB / 344.6 MB, free: 9.422 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005536/0.1337, allocations: 108.9 kB / 344.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.1356, allocations: 1.134 MB / 345.9 MB, free: 8.145 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.1357, allocations: 148.6 kB / 346 MB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001667/0.1374, allocations: 1.781 MB / 347.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.1377, allocations: 92.34 kB / 347.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1377, allocations: 0 / 347.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of Templates: time 0.1193/0.2569, allocations: 42.22 MB / 390.1 MB, free: 74.32 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.216357919154689]