Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 60.12 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2497, allocations: 50.54 MB / 411.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01529/0.2651, allocations: 13.43 MB / 425 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01721/0.2823, allocations: 15.56 MB / 440.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.2825, allocations: 4 kB / 440.6 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.2829, allocations: 83.55 kB / 440.7 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000375/0.2833, allocations: 107.2 kB / 440.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01456/0.2979, allocations: 5.97 MB / 446.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004765/0.2984, allocations: 346.5 kB / 447.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.754e-05/0.2985, allocations: 25.66 kB / 447.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004775/0.2989, allocations: 223 kB / 447.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.2991, allocations: 111.6 kB / 447.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.2992, allocations: 12 kB / 447.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01211/0.3113, allocations: 6.759 MB / 454.2 MB, free: 5.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.912e-05/0.3114, allocations: 43.83 kB / 454.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.3116, allocations: 111.5 kB / 454.3 MB, free: 5.773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007798/0.3194, allocations: 3.918 MB / 458.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3194, allocations: 4 kB / 458.3 MB, free: 1.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3194, allocations: 0 / 458.3 MB, free: 1.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3194, allocations: 0 / 458.3 MB, free: 1.844 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.002652/0.3221, allocations: 0.9986 MB / 459.3 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.3221, allocations: 8.031 kB / 459.3 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.3236, allocations: 172.6 kB / 459.4 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.324, allocations: 264 kB / 459.7 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.324, allocations: 16.81 kB / 459.7 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.3241, allocations: 32.11 kB / 459.7 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003123/0.3272, allocations: 0.8972 MB / 460.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3272, allocations: 7.938 kB / 460.7 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.3273, allocations: 12 kB / 460.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3273, allocations: 8 kB / 460.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003211/0.3305, allocations: 0.9656 MB / 461.6 MB, free: 14.37 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.001668/0.3322, allocations: 1.339 MB / 463 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.3348, allocations: 0.7325 MB / 463.7 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.3351, allocations: 160.8 kB / 463.9 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08267/0.4178, allocations: 42.17 MB / 0.4942 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.4178, allocations: 38.56 kB / 0.4942 GB, free: 12.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.394e-06/0.4179, allocations: 4 kB / 0.4942 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005373/0.4232, allocations: 1.362 MB / 0.4955 GB, free: 11.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.128e-05/0.4233, allocations: 63.34 kB / 0.4956 GB, free: 10.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4234, allocations: 117.8 kB / 0.4957 GB, free: 10.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.577e-05/0.4235, allocations: 29.7 kB / 0.4957 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.4236, allocations: 112.7 kB / 0.4959 GB, free: 10.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4237, allocations: 126.3 kB / 0.496 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002661/0.424, allocations: 161.6 kB / 0.4961 GB, free: 10.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.4241, allocations: 318.8 kB / 0.4964 GB, free: 10.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006332/0.4248, allocations: 343.6 kB / 0.4968 GB, free: 9.742 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007168/0.4255, allocations: 407.5 kB / 0.4971 GB, free: 9.316 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.4268, allocations: 0.7064 MB / 0.4978 GB, free: 8.582 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4268, allocations: 0 / 0.4978 GB, free: 8.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00185/0.4287, allocations: 0.8722 MB / 0.4987 GB, free: 7.703 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.4287, allocations: 8 kB / 0.4987 GB, free: 7.695 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4287, allocations: 7.875 kB / 0.4987 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.4287, allocations: 4 kB / 0.4987 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006801/0.4294, allocations: 188.1 kB / 0.4989 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.4294, allocations: 4 kB / 0.4989 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.4298, allocations: 23.78 kB / 0.4989 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4299, allocations: 68.11 kB / 0.499 GB, free: 7.406 MB / 430.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.000231/0.4301, allocations: 145.7 kB / 0.4991 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.4303, allocations: 19.81 kB / 0.4991 GB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/0.4375, allocations: 7.97 MB / 0.5069 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/0.4375, allocations: 31.95 kB / 0.507 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4375, allocations: 0 / 0.507 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4376, allocations: 3.984 kB / 0.507 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00285/0.4404, allocations: 3.592 MB / 0.5105 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.4404, allocations: 0 / 0.5105 GB, free: 11.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006508/0.4411, allocations: 115.8 kB / 0.5106 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.4411, allocations: 0 / 0.5106 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.4412, allocations: 15.94 kB / 0.5106 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4412, allocations: 7.984 kB / 0.5106 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4412, allocations: 0 / 0.5106 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.4435, allocations: 1.831 MB / 0.5124 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.918e-05/0.4436, allocations: 144.2 kB / 0.5125 GB, free: 9.207 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.655e-05/0.4436, allocations: 15.92 kB / 0.5125 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.4439, allocations: 12 kB / 0.5125 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.355e-05/0.444, allocations: 27.95 kB / 0.5126 GB, free: 9.152 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.4441, allocations: 24.05 kB / 0.5126 GB, free: 9.129 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.776e-05/0.4441, allocations: 91.22 kB / 0.5127 GB, free: 9.039 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4441, allocations: 0 / 0.5127 GB, free: 9.039 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002494/0.4466, allocations: 0.9916 MB / 0.5137 GB, free: 8.047 MB / 446.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.004803/0.4515, allocations: 1.147 MB / 0.5148 GB, free: 6.891 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.453, allocations: 0.8955 MB / 0.5156 GB, free: 5.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.453, allocations: 8.062 kB / 0.5157 GB, free: 5.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007084/0.4537, allocations: 0.5915 MB / 0.5162 GB, free: 5.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.4543, allocations: 90.81 kB / 0.5163 GB, free: 5.312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.4565, allocations: 1.302 MB / 0.5176 GB, free: 3.977 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.457, allocations: 0.8536 MB / 0.5184 GB, free: 3.094 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002681/0.4597, allocations: 1.787 MB / 0.5202 GB, free: 1.301 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004746/0.4602, allocations: 91.3 kB / 0.5203 GB, free: 1.215 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4602, allocations: 0 / 0.5203 GB, free: 1.215 MB / 446.1 MB Notification: Performance of Templates: time 0.2316/0.6918, allocations: 40.99 MB / 0.5603 GB, free: 116.8 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches