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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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=4400,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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 118.3 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002123, allocations: 183.1 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB 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.001317/0.001318, allocations: 51.91 kB / 330.8 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.09012, allocations: 46.61 MB / 377.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.177/0.2672, allocations: 13.32 MB / 390.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.2836, allocations: 15.55 MB / 406.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.2839, allocations: 1.375 kB / 406.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003667/0.2843, allocations: 86.69 kB / 406.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.2847, allocations: 109.2 kB / 406.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01954/0.3042, allocations: 5.954 MB / 412.5 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005056/0.3048, allocations: 338.8 kB / 412.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.42e-05/0.3048, allocations: 19.67 kB / 412.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004537/0.3053, allocations: 220.5 kB / 413 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.3055, allocations: 111.8 kB / 413.1 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.3055, allocations: 14.25 kB / 413.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01349/0.319, allocations: 6.74 MB / 419.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.346e-05/0.3191, allocations: 44.08 kB / 419.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.3194, allocations: 109 kB / 420.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008884/0.3282, allocations: 3.893 MB / 423.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3283, allocations: 0 / 423.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3283, allocations: 0 / 423.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.3283, allocations: 7.938 kB / 424 MB, free: 15.11 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.002587/0.3309, allocations: 0.9874 MB / 424.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3309, allocations: 12.03 kB / 425 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.3324, allocations: 169.4 kB / 425.1 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.3327, allocations: 256.1 kB / 425.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.3327, allocations: 20.81 kB / 425.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.3328, allocations: 32.03 kB / 425.4 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002953/0.3358, allocations: 0.9012 MB / 426.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3358, allocations: 3.938 kB / 426.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.3358, allocations: 12 kB / 426.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3358, allocations: 4 kB / 426.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003086/0.3389, allocations: 0.9695 MB / 427.3 MB, free: 11.65 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.001601/0.3406, allocations: 1.346 MB / 428.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.343, allocations: 0.7271 MB / 429.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003665/0.3434, allocations: 164.8 kB / 429.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07637/0.4198, allocations: 37.54 MB / 467.1 MB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.4199, allocations: 30.56 kB / 467.1 MB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.4199, allocations: 7.938 kB / 467.1 MB, free: 15.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005051/0.4249, allocations: 1.356 MB / 468.5 MB, free: 13.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.425, allocations: 55.41 kB / 468.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.4251, allocations: 125.7 kB / 468.7 MB, free: 13.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.04e-05/0.4252, allocations: 37.64 kB / 468.7 MB, free: 13.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.4253, allocations: 112.7 kB / 468.8 MB, free: 13.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4254, allocations: 110.4 kB / 468.9 MB, free: 13.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002816/0.4257, allocations: 165.5 kB / 469.1 MB, free: 13.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4258, allocations: 326.8 kB / 469.4 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.4264, allocations: 335.8 kB / 469.7 MB, free: 12.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007059/0.4271, allocations: 411.7 kB / 470.1 MB, free: 12.15 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/0.4285, allocations: 0.6998 MB / 470.8 MB, free: 11.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4285, allocations: 0 / 470.8 MB, free: 11.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001862/0.4304, allocations: 0.8835 MB / 471.7 MB, free: 10.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.4304, allocations: 4 kB / 471.7 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4304, allocations: 7.938 kB / 471.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.4304, allocations: 4 kB / 471.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006368/0.4311, allocations: 172 kB / 471.9 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.4311, allocations: 15.92 kB / 471.9 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.4314, allocations: 31.62 kB / 471.9 MB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.4315, allocations: 67.92 kB / 472 MB, free: 10.23 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.0002163/0.4318, allocations: 137.8 kB / 472.1 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.4319, allocations: 15.81 kB / 472.2 MB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007507/0.4394, allocations: 7.974 MB / 480.1 MB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.4395, allocations: 27.95 kB / 480.2 MB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4395, allocations: 0 / 480.2 MB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4395, allocations: 0 / 480.2 MB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/0.4425, allocations: 3.588 MB / 483.7 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4425, allocations: 0 / 483.7 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005979/0.4431, allocations: 111.8 kB / 483.9 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4431, allocations: 0.875 kB / 483.9 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.566e-05/0.4432, allocations: 19.92 kB / 483.9 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.4432, allocations: 0 / 483.9 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4432, allocations: 4 kB / 483.9 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.4455, allocations: 1.835 MB / 485.7 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.4457, allocations: 148.1 kB / 485.9 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.4457, allocations: 16 kB / 485.9 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.446, allocations: 14.61 kB / 485.9 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.4461, allocations: 27.97 kB / 485.9 MB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.4462, allocations: 15.98 kB / 485.9 MB, free: 11.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.114e-05/0.4462, allocations: 95.2 kB / 486 MB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4462, allocations: 0 / 486 MB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003046/0.4493, allocations: 0.9761 MB / 487 MB, free: 10.91 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.005431/0.4547, allocations: 1.133 MB / 488.1 MB, free: 9.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.4564, allocations: 0.9074 MB / 489 MB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4564, allocations: 0 / 489 MB, free: 8.859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007392/0.4572, allocations: 0.5908 MB / 489.6 MB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006423/0.4578, allocations: 81.77 kB / 489.7 MB, free: 8.191 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.4599, allocations: 1.314 MB / 491 MB, free: 6.848 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.4603, allocations: 0.8536 MB / 491.9 MB, free: 5.969 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.4623, allocations: 1.78 MB / 493.7 MB, free: 4.188 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/0.4626, allocations: 83.36 kB / 493.7 MB, free: 4.109 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4627, allocations: 4 kB / 493.7 MB, free: 4.105 MB / 414.1 MB Notification: Performance of Templates: time 0.05622/0.5189, allocations: 40.84 MB / 0.5221 GB, free: 11.16 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (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) 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) Reference file matches