Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 109.3 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001539/0.001539, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 230.4 MB / 251.1 MB, free: 8.461 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 71.83 kB / 369.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2418, allocations: 53.31 MB / 423.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0171/0.2589, allocations: 13.5 MB / 436.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02052/0.2794, allocations: 15.6 MB / 452.2 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.2796, allocations: 4 kB / 452.2 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.2799, allocations: 83.53 kB / 452.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003681/0.2803, allocations: 111.2 kB / 452.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01537/0.2957, allocations: 5.981 MB / 458.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005369/0.2962, allocations: 350.5 kB / 458.7 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.086e-05/0.2962, allocations: 9.688 kB / 458.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006075/0.2969, allocations: 243 kB / 459 MB, free: 3.609 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002068/0.2971, allocations: 99.61 kB / 459 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.2971, allocations: 12 kB / 459.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01387/0.311, allocations: 6.778 MB / 465.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.734e-05/0.3111, allocations: 43.83 kB / 465.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.3112, allocations: 111.5 kB / 466 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008314/0.3195, allocations: 3.909 MB / 469.9 MB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3195, allocations: 3.938 kB / 469.9 MB, free: 8.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3196, allocations: 4 kB / 469.9 MB, free: 8.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3196, allocations: 0 / 469.9 MB, free: 8.637 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.002712/0.3223, allocations: 1.026 MB / 470.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3223, allocations: 8.031 kB / 470.9 MB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/0.3238, allocations: 180.6 kB / 471.1 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.3242, allocations: 260.1 kB / 471.4 MB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.3242, allocations: 20.81 kB / 471.4 MB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.3243, allocations: 28.12 kB / 471.4 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003467/0.3278, allocations: 0.9011 MB / 472.3 MB, free: 6.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.3278, allocations: 4 kB / 472.3 MB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3278, allocations: 8 kB / 472.3 MB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3278, allocations: 12 kB / 472.3 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003515/0.3313, allocations: 0.9695 MB / 473.3 MB, free: 5.121 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.001835/0.3332, allocations: 1.335 MB / 474.6 MB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.336, allocations: 0.7285 MB / 475.4 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.3363, allocations: 156.8 kB / 475.5 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08169/0.418, allocations: 42.18 MB / 0.5056 GB, free: 3.199 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.418, allocations: 38.56 kB / 0.5056 GB, free: 3.152 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.418, allocations: 0 / 0.5056 GB, free: 3.152 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005703/0.4237, allocations: 1.362 MB / 0.5069 GB, free: 1.785 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4238, allocations: 55.41 kB / 0.507 GB, free: 1.719 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4239, allocations: 121.8 kB / 0.5071 GB, free: 1.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.362e-05/0.424, allocations: 29.7 kB / 0.5071 GB, free: 1.555 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.4241, allocations: 120.8 kB / 0.5073 GB, free: 1.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.4242, allocations: 126.9 kB / 0.5074 GB, free: 1.309 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.4245, allocations: 165.6 kB / 0.5075 GB, free: 1.141 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4247, allocations: 326.8 kB / 0.5078 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006992/0.4254, allocations: 339.6 kB / 0.5082 GB, free: 492 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007832/0.4262, allocations: 407.5 kB / 0.5086 GB, free: 56 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.4277, allocations: 0.7106 MB / 0.5093 GB, free: 15.31 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4277, allocations: 0 / 0.5093 GB, free: 15.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002005/0.4297, allocations: 0.8724 MB / 0.5101 GB, free: 14.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.4297, allocations: 8 kB / 0.5101 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.4297, allocations: 7.938 kB / 0.5101 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.4297, allocations: 0 / 0.5101 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.4304, allocations: 183.7 kB / 0.5103 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.4305, allocations: 4 kB / 0.5103 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.4308, allocations: 27.84 kB / 0.5103 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/0.431, allocations: 64.3 kB / 0.5104 GB, free: 14.14 MB / 446.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.0002504/0.4312, allocations: 149.8 kB / 0.5105 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000156/0.4314, allocations: 15.91 kB / 0.5105 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008625/0.44, allocations: 7.978 MB / 0.5183 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.184e-05/0.44, allocations: 31.89 kB / 0.5184 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.44, allocations: 0 / 0.5184 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.44, allocations: 7.984 kB / 0.5184 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/0.4436, allocations: 3.596 MB / 0.5219 GB, free: 2.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.4437, allocations: 4 kB / 0.5219 GB, free: 2.078 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.4444, allocations: 111.8 kB / 0.522 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.4444, allocations: 0 / 0.522 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.4444, allocations: 15.94 kB / 0.522 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.82e-06/0.4444, allocations: 3.984 kB / 0.522 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4444, allocations: 0 / 0.522 GB, free: 1.949 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.4471, allocations: 1.843 MB / 0.5238 GB, free: 88 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.4472, allocations: 144.4 kB / 0.524 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.717e-05/0.4472, allocations: 7.938 kB / 0.524 GB, free: 15.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.4476, allocations: 19.98 kB / 0.524 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.4477, allocations: 31.95 kB / 0.524 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.826e-05/0.4477, allocations: 11.98 kB / 0.524 GB, free: 15.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.247e-05/0.4478, allocations: 91.34 kB / 0.5241 GB, free: 15.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4478, allocations: 3.938 kB / 0.5241 GB, free: 15.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002707/0.4505, allocations: 1.002 MB / 0.5251 GB, free: 14.76 MB / 462.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.003797/0.4543, allocations: 1.153 MB / 0.5262 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.456, allocations: 0.8756 MB / 0.5271 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.456, allocations: 0.5 kB / 0.5271 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007999/0.4568, allocations: 0.5215 MB / 0.5276 GB, free: 12.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006441/0.4574, allocations: 95.77 kB / 0.5277 GB, free: 12.11 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.4594, allocations: 1.312 MB / 0.529 GB, free: 10.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.4599, allocations: 0.8536 MB / 0.5298 GB, free: 9.875 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002164/0.4621, allocations: 1.791 MB / 0.5315 GB, free: 8.078 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.4624, allocations: 87.34 kB / 0.5316 GB, free: 7.992 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4624, allocations: 0 / 0.5316 GB, free: 7.992 MB / 462.1 MB Notification: Performance of Templates: time 0.2223/0.6847, allocations: 41.35 MB / 0.572 GB, free: 98.81 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches