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.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.001802/0.001802, allocations: 107.8 kB / 19.76 MB, free: 2.551 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.00245/0.00245, allocations: 189.4 kB / 22.92 MB, free: 5.582 MB / 14.72 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 1.429/1.429, allocations: 207.6 MB / 233.5 MB, free: 10.98 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 54.73 kB / 346.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2661, allocations: 49.12 MB / 395.3 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01463/0.2807, allocations: 13.46 MB / 408.8 MB, free: 344 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02031/0.301, allocations: 15.64 MB / 424.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.3013, allocations: 1.125 kB / 424.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004559/0.3017, allocations: 84.94 kB / 424.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004852/0.3022, allocations: 111.2 kB / 424.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01876/0.321, allocations: 5.953 MB / 430.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005517/0.3215, allocations: 343.1 kB / 430.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.396e-05/0.3216, allocations: 7.281 kB / 430.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005506/0.3221, allocations: 241.3 kB / 431.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.3223, allocations: 104.7 kB / 431.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.3223, allocations: 14.06 kB / 431.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01363/0.336, allocations: 6.749 MB / 438 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.3361, allocations: 47.83 kB / 438.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.3363, allocations: 103.6 kB / 438.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009318/0.3456, allocations: 3.901 MB / 442.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3456, allocations: 0 / 442.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3456, allocations: 0 / 442.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.3456, allocations: 0 / 442.1 MB, free: 4.77 MB / 350.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.002552/0.3482, allocations: 1.007 MB / 443.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3482, allocations: 8.031 kB / 443.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/0.3496, allocations: 180.6 kB / 443.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.35, allocations: 256 kB / 443.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.35, allocations: 24.8 kB / 443.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.35, allocations: 28.08 kB / 443.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003253/0.3533, allocations: 0.9051 MB / 444.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3533, allocations: 0 / 444.5 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.3533, allocations: 4 kB / 444.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.3534, allocations: 11.98 kB / 444.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.3567, allocations: 0.9695 MB / 445.5 MB, free: 1.273 MB / 350.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.001787/0.3585, allocations: 1.35 MB / 446.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/0.3613, allocations: 0.7205 MB / 447.5 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/0.3615, allocations: 152.8 kB / 447.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0766/0.4381, allocations: 37.54 MB / 485.2 MB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.4382, allocations: 38.55 kB / 485.3 MB, free: 4.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.4382, allocations: 3.938 kB / 485.3 MB, free: 4.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00547/0.4437, allocations: 1.364 MB / 486.6 MB, free: 3.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.4437, allocations: 55.41 kB / 486.7 MB, free: 3.426 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.4438, allocations: 117.8 kB / 486.8 MB, free: 3.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.4439, allocations: 33.7 kB / 486.8 MB, free: 3.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.444, allocations: 120.8 kB / 486.9 MB, free: 3.141 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001435/0.4442, allocations: 115 kB / 487.1 MB, free: 3.027 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/0.4445, allocations: 169.5 kB / 487.2 MB, free: 2.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.4446, allocations: 326.8 kB / 487.5 MB, free: 2.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006742/0.4453, allocations: 339.8 kB / 487.9 MB, free: 2.195 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007496/0.446, allocations: 403.3 kB / 488.3 MB, free: 1.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.4475, allocations: 0.7115 MB / 489 MB, free: 1.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4475, allocations: 0 / 489 MB, free: 1.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001933/0.4494, allocations: 0.8719 MB / 489.9 MB, free: 160 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.4494, allocations: 4.25 kB / 489.9 MB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4494, allocations: 11.94 kB / 489.9 MB, free: 144 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4495, allocations: 4 kB / 489.9 MB, free: 140 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006949/0.4502, allocations: 175.7 kB / 490 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.4502, allocations: 4 kB / 490 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.4505, allocations: 31.83 kB / 490.1 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/0.4506, allocations: 67.91 kB / 490.1 MB, free: 15.86 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.0002377/0.4509, allocations: 154 kB / 490.3 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.451, allocations: 19.91 kB / 490.3 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008432/0.4595, allocations: 7.97 MB / 498.3 MB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.001e-05/0.4595, allocations: 27.97 kB / 498.3 MB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.4595, allocations: 0 / 498.3 MB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4595, allocations: 3.984 kB / 498.3 MB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003408/0.4629, allocations: 3.604 MB / 0.4902 GB, free: 3.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.4629, allocations: 4 kB / 0.4902 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006732/0.4636, allocations: 111.8 kB / 0.4903 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.4636, allocations: 4 kB / 0.4903 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.471e-05/0.4637, allocations: 15.92 kB / 0.4903 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.4637, allocations: 0 / 0.4903 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4637, allocations: 0 / 0.4903 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002578/0.4662, allocations: 1.847 MB / 0.4921 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.4664, allocations: 140.5 kB / 0.4922 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.4664, allocations: 11.94 kB / 0.4922 GB, free: 1.629 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.4667, allocations: 12 kB / 0.4922 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4668, allocations: 31.95 kB / 0.4923 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.4669, allocations: 11.98 kB / 0.4923 GB, free: 1.574 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.811e-05/0.4669, allocations: 91.27 kB / 0.4924 GB, free: 1.484 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4669, allocations: 64 / 0.4924 GB, free: 1.484 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002671/0.4696, allocations: 0.9979 MB / 0.4934 GB, free: 496 kB / 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.00455/0.4741, allocations: 1.134 MB / 0.4945 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.4759, allocations: 0.8794 MB / 0.4953 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.4759, allocations: 4 kB / 0.4953 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.4767, allocations: 0.5132 MB / 0.4958 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.4774, allocations: 83.98 kB / 0.4959 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.4795, allocations: 1.331 MB / 0.4972 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.48, allocations: 0.8614 MB / 0.498 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002265/0.4823, allocations: 1.783 MB / 0.4998 GB, free: 9.828 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.4826, allocations: 87.36 kB / 0.4999 GB, free: 9.746 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4826, allocations: 4 kB / 0.4999 GB, free: 9.742 MB / 430.1 MB Notification: Performance of Templates: time 0.0616/0.5442, allocations: 41.36 MB / 0.5403 GB, free: 272 kB / 462.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.181222130544484]