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.00189/0.00189, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.002142/0.002142, allocations: 187.5 kB / 24.45 MB, free: 3.867 MB / 14.72 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 1.541/1.541, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001566/0.001566, allocations: 47.92 kB / 372.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2508, allocations: 52.18 MB / 424.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01835/0.2692, allocations: 12.21 MB / 436.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02072/0.2899, allocations: 13.64 MB / 450.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.2901, allocations: 4 kB / 450.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003809/0.2905, allocations: 67.53 kB / 450.5 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.2908, allocations: 107.3 kB / 450.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01686/0.3077, allocations: 5.925 MB / 456.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005419/0.3082, allocations: 346.5 kB / 456.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.82e-05/0.3083, allocations: 5.812 kB / 456.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004951/0.3088, allocations: 219 kB / 457.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.3089, allocations: 99.59 kB / 457.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.309, allocations: 12 kB / 457.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01343/0.3224, allocations: 6.47 MB / 463.7 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3225, allocations: 47.83 kB / 463.8 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.3227, allocations: 91.64 kB / 463.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00862/0.3313, allocations: 3.913 MB / 467.8 MB, free: 2.934 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.3313, allocations: 7.938 kB / 467.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3313, allocations: 0 / 467.8 MB, free: 2.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.3313, allocations: 0 / 467.8 MB, free: 2.926 MB / 366.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.00264/0.334, allocations: 0.9312 MB / 468.7 MB, free: 1.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.334, allocations: 12.03 kB / 468.7 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001394/0.3354, allocations: 172.6 kB / 468.9 MB, free: 1.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003888/0.3358, allocations: 206.1 kB / 469.1 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.38e-05/0.3358, allocations: 20.81 kB / 469.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.511e-05/0.3359, allocations: 32.11 kB / 469.1 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003108/0.339, allocations: 0.9553 MB / 470.1 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.339, allocations: 3.938 kB / 470.1 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.339, allocations: 4 kB / 470.1 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.3391, allocations: 8 kB / 470.1 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003183/0.3422, allocations: 0.9657 MB / 471.1 MB, free: 15.53 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.001496/0.3437, allocations: 0.9048 MB / 472 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.3462, allocations: 0.7255 MB / 472.7 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.3465, allocations: 156.8 kB / 472.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07093/0.4174, allocations: 19.73 MB / 492.6 MB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.4175, allocations: 38.56 kB / 492.6 MB, free: 9.902 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.394e-06/0.4175, allocations: 0 / 492.6 MB, free: 9.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005202/0.4227, allocations: 1.352 MB / 494 MB, free: 8.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.4227, allocations: 59.34 kB / 494 MB, free: 8.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.4229, allocations: 125.7 kB / 494.2 MB, free: 8.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/0.4229, allocations: 33.7 kB / 494.2 MB, free: 8.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.636e-05/0.423, allocations: 124.8 kB / 494.3 MB, free: 8.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.4232, allocations: 119 kB / 494.4 MB, free: 8.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/0.4234, allocations: 165.5 kB / 494.6 MB, free: 7.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.4236, allocations: 330.8 kB / 494.9 MB, free: 7.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006427/0.4242, allocations: 339.8 kB / 495.2 MB, free: 7.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007226/0.4249, allocations: 403.5 kB / 495.6 MB, free: 6.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.4263, allocations: 0.7114 MB / 496.3 MB, free: 6.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4263, allocations: 0 / 496.3 MB, free: 6.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00185/0.4282, allocations: 0.8758 MB / 497.2 MB, free: 5.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.4282, allocations: 4 kB / 497.2 MB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.4282, allocations: 4 kB / 497.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.4282, allocations: 7.938 kB / 497.2 MB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006567/0.4289, allocations: 171.8 kB / 497.4 MB, free: 5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.4289, allocations: 7.984 kB / 497.4 MB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/0.4292, allocations: 36.03 kB / 497.4 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.4293, allocations: 67.92 kB / 497.5 MB, free: 4.891 MB / 398.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.0002201/0.4295, allocations: 133.8 kB / 497.6 MB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.4297, allocations: 19.89 kB / 497.7 MB, free: 4.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008676/0.4384, allocations: 8.498 MB / 0.4943 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/0.4384, allocations: 39.83 kB / 0.4943 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4384, allocations: 0 / 0.4943 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4384, allocations: 0 / 0.4943 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003468/0.4419, allocations: 3.639 MB / 0.4979 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4419, allocations: 0 / 0.4979 GB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000628/0.4425, allocations: 111.8 kB / 0.498 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.4425, allocations: 0 / 0.498 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.4425, allocations: 12.36 kB / 0.498 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.4426, allocations: 4 kB / 0.498 GB, free: 8.164 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.4426, allocations: 3.938 kB / 0.498 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.4452, allocations: 1.893 MB / 0.4999 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.347e-05/0.4453, allocations: 71.33 kB / 0.4999 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.4453, allocations: 8 kB / 0.4999 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.4456, allocations: 19.98 kB / 0.5 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/0.4457, allocations: 31.88 kB / 0.5 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.4457, allocations: 12 kB / 0.5 GB, free: 6.105 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.631e-05/0.4458, allocations: 91.27 kB / 0.5001 GB, free: 6.016 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4458, allocations: 0 / 0.5001 GB, free: 6.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00261/0.4484, allocations: 0.998 MB / 0.5011 GB, free: 5.016 MB / 414.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.003618/0.452, allocations: 1.141 MB / 0.5022 GB, free: 3.863 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.4536, allocations: 0.888 MB / 0.503 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4536, allocations: 0 / 0.503 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007738/0.4544, allocations: 0.5321 MB / 0.5036 GB, free: 2.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.4551, allocations: 84.64 kB / 0.5036 GB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/0.457, allocations: 1.374 MB / 0.505 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.4573, allocations: 259 kB / 0.5052 GB, free: 0.6719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003443/0.4576, allocations: 95.34 kB / 0.5053 GB, free: 0.582 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4576, allocations: 0 / 0.5053 GB, free: 0.582 MB / 414.1 MB Notification: Performance of Templates: time 0.03581/0.4934, allocations: 24.14 MB / 0.5289 GB, free: 8.379 MB / 446.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.86273020459339]