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.001336/0.001336, allocations: 70.03 kB / 21.24 MB, free: 0.5547 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.001335/0.001335, allocations: 153.6 kB / 24.49 MB, free: 3.852 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.452/1.452, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.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.001581/0.001581, allocations: 47.84 kB / 320.2 MB, free: 2.602 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08735/0.08893, allocations: 52.15 MB / 372.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01634/0.1053, allocations: 12.21 MB / 384.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.1237, allocations: 13.64 MB / 398.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1238, allocations: 0 / 398.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.1241, allocations: 75.52 kB / 398.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.1245, allocations: 103.3 kB / 398.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.015/0.1395, allocations: 5.92 MB / 404.3 MB, free: 6.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005328/0.14, allocations: 342.5 kB / 404.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.973e-05/0.14, allocations: 13.8 kB / 404.7 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000475/0.1405, allocations: 211.1 kB / 404.9 MB, free: 5.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.1407, allocations: 103.5 kB / 405 MB, free: 5.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.1407, allocations: 16 kB / 405 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01243/0.1532, allocations: 6.462 MB / 411.5 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1533, allocations: 43.83 kB / 411.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.1534, allocations: 87.66 kB / 411.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007457/0.1609, allocations: 3.913 MB / 415.5 MB, free: 11.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1609, allocations: 4 kB / 415.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1609, allocations: 0 / 415.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1609, allocations: 0 / 415.5 MB, free: 11.28 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.002254/0.1632, allocations: 0.9429 MB / 416.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.1632, allocations: 8.922 kB / 416.5 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.1646, allocations: 172.7 kB / 416.6 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.165, allocations: 202.1 kB / 416.8 MB, free: 9.906 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.165, allocations: 20.88 kB / 416.8 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.1651, allocations: 32.11 kB / 416.9 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003231/0.1683, allocations: 0.9562 MB / 417.8 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.1683, allocations: 3.938 kB / 417.8 MB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.1683, allocations: 8 kB / 417.8 MB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1683, allocations: 4 kB / 417.8 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003339/0.1717, allocations: 0.962 MB / 418.8 MB, free: 7.887 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.001506/0.1732, allocations: 0.909 MB / 419.7 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.1759, allocations: 0.7294 MB / 420.4 MB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.1762, allocations: 156.8 kB / 420.6 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07491/0.2511, allocations: 19.73 MB / 440.3 MB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.2511, allocations: 34.56 kB / 440.4 MB, free: 2.246 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.2511, allocations: 0 / 440.4 MB, free: 2.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005299/0.2564, allocations: 1.356 MB / 441.7 MB, free: 0.8828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.2565, allocations: 59.34 kB / 441.8 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.2566, allocations: 125.7 kB / 441.9 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.649e-05/0.2567, allocations: 33.7 kB / 441.9 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.2568, allocations: 120.8 kB / 442.1 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.2569, allocations: 123 kB / 442.2 MB, free: 408 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002809/0.2572, allocations: 169.5 kB / 442.3 MB, free: 232 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.2574, allocations: 322.8 kB / 442.7 MB, free: 15.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006745/0.258, allocations: 339.8 kB / 443 MB, free: 15.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007563/0.2588, allocations: 399.5 kB / 443.4 MB, free: 15.15 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.2602, allocations: 0.7153 MB / 444.1 MB, free: 14.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.259e-06/0.2602, allocations: 4 kB / 444.1 MB, free: 14.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001944/0.2622, allocations: 0.8719 MB / 445 MB, free: 13.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2622, allocations: 8 kB / 445 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.361e-06/0.2622, allocations: 0 / 445 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.2622, allocations: 7.938 kB / 445 MB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006722/0.2629, allocations: 171.8 kB / 445.1 MB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.2629, allocations: 7.938 kB / 445.2 MB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.2633, allocations: 44.02 kB / 445.2 MB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.2634, allocations: 59.94 kB / 445.3 MB, free: 13.23 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.0002262/0.2636, allocations: 141.8 kB / 445.4 MB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.2637, allocations: 15.91 kB / 445.4 MB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009144/0.2729, allocations: 8.511 MB / 453.9 MB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.2729, allocations: 31.89 kB / 454 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.2729, allocations: 0 / 454 MB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.2729, allocations: 3.984 kB / 454 MB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003512/0.2765, allocations: 3.636 MB / 457.6 MB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.2765, allocations: 3.938 kB / 457.6 MB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006569/0.2771, allocations: 111.8 kB / 457.7 MB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.2771, allocations: 0 / 457.7 MB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.062e-05/0.2772, allocations: 11.98 kB / 457.7 MB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.2772, allocations: 8.375 kB / 457.7 MB, free: 0.4961 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2772, allocations: 3.938 kB / 457.7 MB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.2798, allocations: 1.9 MB / 459.6 MB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.509e-05/0.2799, allocations: 71.33 kB / 459.7 MB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.2799, allocations: 7.938 kB / 459.7 MB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.2802, allocations: 16 kB / 459.7 MB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.2803, allocations: 31.88 kB / 459.8 MB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.2804, allocations: 15.98 kB / 459.8 MB, free: 14.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.248e-05/0.2804, allocations: 91.27 kB / 459.9 MB, free: 14.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2804, allocations: 64 / 459.9 MB, free: 14.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002555/0.283, allocations: 0.998 MB / 460.9 MB, free: 13.34 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.003558/0.2866, allocations: 1.128 MB / 462 MB, free: 12.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.2882, allocations: 0.888 MB / 462.9 MB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2882, allocations: 3.938 kB / 462.9 MB, free: 11.31 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000803/0.289, allocations: 0.536 MB / 463.4 MB, free: 10.78 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.2897, allocations: 80.64 kB / 463.5 MB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.2917, allocations: 1.365 MB / 464.9 MB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.292, allocations: 251.2 kB / 465.1 MB, free: 9.035 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002158/0.2941, allocations: 1.787 MB / 466.9 MB, free: 7.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/0.2945, allocations: 88.42 kB / 467 MB, free: 7.164 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2945, allocations: 0 / 467 MB, free: 7.164 MB / 430.1 MB Notification: Performance of Templates: time 0.203/0.4974, allocations: 41.35 MB / 0.4964 GB, free: 72.09 MB / 430.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 -s ida -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: 7.223081749980338]