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.001452/0.001452, allocations: 84.98 kB / 23 MB, free: 1.504 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.00201/0.00201, allocations: 175.6 kB / 26.39 MB, free: 8.008 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.8821/0.8821, allocations: 158.6 MB / 188.3 MB, free: 2.789 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 1.392e-06/1.392e-06, allocations: 0 / 255.1 MB, free: 4.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.065e-05/2.204e-05, allocations: 6.25 kB / 255.1 MB, free: 4.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0118/0.01182, allocations: 13.21 MB / 268.3 MB, free: 7.078 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.02378, allocations: 14.93 MB / 283.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.02391, allocations: 7.938 kB / 283.3 MB, free: 8.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002932/0.02421, allocations: 71.56 kB / 283.3 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.02448, allocations: 111.1 kB / 283.5 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0112/0.03569, allocations: 5.976 MB / 289.4 MB, free: 1.902 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004286/0.03612, allocations: 346.3 kB / 289.8 MB, free: 1.562 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.515e-05/0.03616, allocations: 9.812 kB / 289.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003975/0.03656, allocations: 263.1 kB / 290 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.03668, allocations: 95.75 kB / 290.1 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.03671, allocations: 16 kB / 290.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009701/0.04641, allocations: 6.465 MB / 296.6 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.283e-05/0.04649, allocations: 43.81 kB / 296.7 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.04661, allocations: 79.89 kB / 296.7 MB, free: 10.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008177/0.05479, allocations: 4.899 MB / 301.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.05479, allocations: 0 / 301.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0548, allocations: 0 / 301.6 MB, free: 5.684 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.0548, allocations: 0 / 301.6 MB, free: 5.684 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.001953/0.05675, allocations: 1.039 MB / 302.7 MB, free: 4.605 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.05679, allocations: 11.98 kB / 302.7 MB, free: 4.594 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008506/0.05764, allocations: 284 kB / 303 MB, free: 4.316 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.05786, allocations: 208.2 kB / 303.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.05788, allocations: 16.86 kB / 303.2 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.477e-05/0.05792, allocations: 24.38 kB / 303.2 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.05952, allocations: 1.038 MB / 304.2 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.05953, allocations: 7.938 kB / 304.2 MB, free: 2.969 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.087e-05/0.05955, allocations: 12 kB / 304.3 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.05956, allocations: 4 kB / 304.3 MB, free: 2.953 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.06094, allocations: 0.8519 MB / 305.1 MB, free: 2.098 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.0008649/0.0618, allocations: 1.034 MB / 306.2 MB, free: 1.023 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.06305, allocations: 0.795 MB / 306.9 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.243e-05/0.06314, allocations: 95.52 kB / 307 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03073/0.09387, allocations: 17.21 MB / 324.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.0939, allocations: 37.39 kB / 324.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.445e-06/0.0939, allocations: 0 / 324.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002726/0.09663, allocations: 1.394 MB / 325.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.801e-05/0.09666, allocations: 55.41 kB / 325.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.558e-05/0.09675, allocations: 189.8 kB / 325.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.0968, allocations: 29.7 kB / 325.9 MB, free: 13.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.968e-05/0.09686, allocations: 167.5 kB / 326.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.683e-05/0.09695, allocations: 130.9 kB / 326.2 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.09713, allocations: 171.2 kB / 326.4 MB, free: 12.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.09725, allocations: 0.5039 MB / 326.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.09755, allocations: 339.7 kB / 327.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.0979, allocations: 452.3 kB / 327.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000649/0.09854, allocations: 0.7544 MB / 328.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.09855, allocations: 0 / 328.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009708/0.09952, allocations: 0.8912 MB / 329.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.09953, allocations: 8 kB / 329.3 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.09954, allocations: 4 kB / 329.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.09955, allocations: 256 / 329.3 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.09989, allocations: 179.8 kB / 329.5 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.0999, allocations: 7.984 kB / 329.5 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.1001, allocations: 35.8 kB / 329.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.621e-05/0.1001, allocations: 59.94 kB / 329.6 MB, free: 9.355 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.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.0001626/0.1003, allocations: 180.4 kB / 329.8 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1004, allocations: 27.89 kB / 329.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/0.1035, allocations: 4.471 MB / 334.3 MB, free: 4.668 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.1035, allocations: 31.88 kB / 334.3 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1035, allocations: 4 kB / 334.3 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1035, allocations: 3.984 kB / 334.3 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1046, allocations: 1.895 MB / 336.2 MB, free: 2.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1046, allocations: 0 / 336.2 MB, free: 2.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.1049, allocations: 111.8 kB / 336.3 MB, free: 2.383 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1049, allocations: 8 kB / 336.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.1049, allocations: 8 kB / 336.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1049, allocations: 0 / 336.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1049, allocations: 0 / 336.4 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.106, allocations: 1.166 MB / 337.5 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.217e-05/0.1061, allocations: 71.31 kB / 337.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.183e-05/0.1061, allocations: 8 kB / 337.6 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.1062, allocations: 12 kB / 337.6 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.1063, allocations: 31.94 kB / 337.6 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.1063, allocations: 7.984 kB / 337.6 MB, free: 1.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.089e-05/0.1064, allocations: 143.5 kB / 337.8 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1064, allocations: 0 / 337.8 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002231/0.1086, allocations: 0.9864 MB / 338.8 MB, free: 15.92 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.002994/0.1116, allocations: 1.293 MB / 340.1 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008303/0.1124, allocations: 0.711 MB / 340.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.1124, allocations: 0 / 340.8 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.1127, allocations: 315.3 kB / 341.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.1132, allocations: 96.33 kB / 341.2 MB, free: 13.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.1145, allocations: 1.106 MB / 342.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.518e-05/0.1146, allocations: 148.6 kB / 342.4 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001446/0.116, allocations: 1.785 MB / 344.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.1165, allocations: 214 kB / 344.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.1165, allocations: 0 / 344.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of Templates: time 0.1495/0.266, allocations: 49.61 MB / 394 MB, free: 51.04 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: 5.056538177188486]