Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001754/0.002913, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009831/0.0009831, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001384/0.002367, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8475/0.8475, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1468/0.9943, allocations: 52.49 MB / 238.5 MB, free: 7.613 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.445e-06/2.445e-06, allocations: 3.984 kB / 242.6 MB, free: 3.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.062e-05/2.306e-05, allocations: 2.969 kB / 242.6 MB, free: 3.426 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01489/0.01491, allocations: 13.4 MB / 256 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.03151, allocations: 15.24 MB / 271.3 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.03169, allocations: 0 / 271.3 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005692/0.03226, allocations: 79.45 kB / 271.4 MB, free: 6.637 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003221/0.03258, allocations: 115.1 kB / 271.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01308/0.04566, allocations: 5.425 MB / 276.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.04607, allocations: 350.4 kB / 277.2 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.068e-05/0.04612, allocations: 14.45 kB / 277.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.04657, allocations: 278.9 kB / 277.5 MB, free: 456 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.04671, allocations: 83.78 kB / 277.6 MB, free: 372 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.04674, allocations: 20 kB / 277.6 MB, free: 352 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009532/0.05627, allocations: 6.969 MB / 284.6 MB, free: 9.367 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.05638, allocations: 31.92 kB / 284.6 MB, free: 9.336 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.0565, allocations: 67.88 kB / 284.7 MB, free: 9.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008311/0.06481, allocations: 3.731 MB / 288.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.741e-05/0.06483, allocations: 3.984 kB / 288.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.06483, allocations: 0 / 288.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.06484, allocations: 0 / 288.4 MB, free: 5.527 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.002481/0.06732, allocations: 1.274 MB / 289.7 MB, free: 4.207 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.06736, allocations: 8.031 kB / 289.7 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.06862, allocations: 316 kB / 290 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.06888, allocations: 173.4 kB / 290.2 MB, free: 3.695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.0689, allocations: 20.88 kB / 290.2 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.06894, allocations: 24.36 kB / 290.2 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002053/0.071, allocations: 1.019 MB / 291.3 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.07101, allocations: 3.938 kB / 291.3 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.07104, allocations: 12 kB / 291.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.07105, allocations: 4 kB / 291.3 MB, free: 2.582 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.07278, allocations: 0.7729 MB / 292 MB, free: 1.816 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.0009998/0.07378, allocations: 0.7593 MB / 292.8 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.07566, allocations: 0.74 MB / 293.5 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.316e-05/0.07575, allocations: 68.83 kB / 293.6 MB, free: 212 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3411/0.4169, allocations: 132.4 MB / 426 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4169, allocations: 42.19 kB / 426 MB, free: 13.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.284e-06/0.4169, allocations: 0 / 426 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002408/0.4193, allocations: 1.254 MB / 427.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.928e-05/0.4193, allocations: 59.39 kB / 427.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.586e-05/0.4194, allocations: 126.9 kB / 427.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.875e-05/0.4195, allocations: 29.33 kB / 427.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.4195, allocations: 119.2 kB / 427.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-05/0.4196, allocations: 122.9 kB / 427.7 MB, free: 11.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.4198, allocations: 121.2 kB / 427.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.145e-05/0.4198, allocations: 332 kB / 428.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002308/0.4201, allocations: 278.1 kB / 428.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003846/0.4204, allocations: 357.4 kB / 428.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004893/0.4209, allocations: 0.6454 MB / 429.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.4209, allocations: 0 / 429.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005739/0.4215, allocations: 0.6455 MB / 430.1 MB, free: 9.621 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4215, allocations: 8 kB / 430.1 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.4215, allocations: 0 / 430.1 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4215, allocations: 8.188 kB / 430.1 MB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004008/0.422, allocations: 220.9 kB / 430.3 MB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.422, allocations: 7.984 kB / 430.3 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001463/0.4221, allocations: 31.67 kB / 430.4 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/0.4222, allocations: 34.5 kB / 430.4 MB, free: 9.391 MB / 362.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.0001622/0.4223, allocations: 139.2 kB / 430.5 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.4224, allocations: 19.8 kB / 430.5 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002659/0.4251, allocations: 4.43 MB / 435 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.4251, allocations: 30.64 kB / 435 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.4251, allocations: 0 / 435 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4251, allocations: 0 / 435 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008753/0.426, allocations: 1.302 MB / 436.3 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.426, allocations: 1.25 kB / 436.3 MB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002976/0.4263, allocations: 112.9 kB / 436.4 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.385e-05/0.4263, allocations: 75.34 kB / 436.5 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.4263, allocations: 2.625 kB / 436.5 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.4264, allocations: 7.938 kB / 436.5 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.4264, allocations: 0 / 436.5 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.4264, allocations: 3.938 kB / 436.5 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009489/0.4273, allocations: 1.048 MB / 437.6 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.4273, allocations: 12.66 kB / 437.6 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.4275, allocations: 15.11 kB / 437.6 MB, free: 2.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.575e-05/0.4275, allocations: 30.62 kB / 437.6 MB, free: 2.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.4276, allocations: 11.38 kB / 437.6 MB, free: 2.848 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.613e-05/0.4276, allocations: 20.75 kB / 437.6 MB, free: 2.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.4276, allocations: 4 kB / 437.6 MB, free: 2.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002058/0.4297, allocations: 0.9914 MB / 438.6 MB, free: 1.867 MB / 362.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.00355/0.4332, allocations: 1.367 MB / 440 MB, free: 0.625 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007079/0.4339, allocations: 0.5968 MB / 440.6 MB, free: 72 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.835e-05/0.4339, allocations: 4 kB / 440.6 MB, free: 68 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000607/0.4345, allocations: 308.4 kB / 440.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.435, allocations: 124.7 kB / 441 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.4387, allocations: 1.085 MB / 442.1 MB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.505e-05/0.4388, allocations: 148.6 kB / 442.3 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001198/0.44, allocations: 1.786 MB / 444 MB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.4404, allocations: 170.2 kB / 444.2 MB, free: 12.63 MB / 378.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4404, allocations: 0 / 444.2 MB, free: 12.63 MB / 378.7 MB Notification: Performance of Templates: time 0.1392/0.5796, allocations: 43.8 MB / 488 MB, free: 122.1 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.935649484395981]