Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009729/0.0009729, allocations: 178.6 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007317/0.0007316, allocations: 89.48 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2336, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02014/0.2538, allocations: 12.38 MB / 387.5 MB, free: 35.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02299/0.2768, allocations: 14.36 MB / 401.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002315/0.2771, allocations: 4 kB / 401.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004214/0.2776, allocations: 59.67 kB / 401.9 MB, free: 21.87 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004741/0.2781, allocations: 103.3 kB / 402 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02104/0.2992, allocations: 4.519 MB / 406.5 MB, free: 17.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005609/0.2998, allocations: 338.4 kB / 406.8 MB, free: 16.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.713e-05/0.2999, allocations: 13.69 kB / 406.9 MB, free: 16.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006649/0.3005, allocations: 207.2 kB / 407.1 MB, free: 16.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.3008, allocations: 103.6 kB / 407.2 MB, free: 16.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.743e-05/0.3008, allocations: 8 kB / 407.2 MB, free: 16.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01757/0.3184, allocations: 6.477 MB / 413.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.3186, allocations: 31.89 kB / 413.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.3188, allocations: 125.3 kB / 413.8 MB, free: 9.941 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005942/0.3248, allocations: 2.62 MB / 416.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3248, allocations: 0 / 416.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3248, allocations: 0 / 416.4 MB, free: 7.316 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3248, allocations: 0 / 416.4 MB, free: 7.316 MB / 298.7 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.003432/0.3283, allocations: 0.9478 MB / 417.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.3283, allocations: 8.031 kB / 417.4 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002524/0.3309, allocations: 184.5 kB / 417.5 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.3312, allocations: 256.1 kB / 417.8 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.3313, allocations: 16.81 kB / 417.8 MB, free: 5.824 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.323e-05/0.3314, allocations: 32.22 kB / 417.8 MB, free: 5.793 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005088/0.3365, allocations: 0.909 MB / 418.8 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.3365, allocations: 4 kB / 418.8 MB, free: 4.859 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.3366, allocations: 8 kB / 418.8 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.3366, allocations: 11.94 kB / 418.8 MB, free: 4.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005143/0.3417, allocations: 0.9851 MB / 419.8 MB, free: 3.855 MB / 298.7 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.001924/0.3437, allocations: 1.347 MB / 421.1 MB, free: 2.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003893/0.3476, allocations: 0.7292 MB / 421.8 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003877/0.348, allocations: 161.4 kB / 422 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1057/0.4537, allocations: 37.77 MB / 459.8 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.4538, allocations: 38.84 kB / 459.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.4538, allocations: 0 / 459.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.005159/0.459, allocations: 1.376 MB / 461.2 MB, free: 5.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.459, allocations: 55.41 kB / 461.2 MB, free: 5.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.4591, allocations: 117.8 kB / 461.3 MB, free: 5.637 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.673e-05/0.4592, allocations: 33.7 kB / 461.4 MB, free: 5.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.4593, allocations: 120.6 kB / 461.5 MB, free: 5.473 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4595, allocations: 118.4 kB / 461.6 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/0.4595, allocations: 4 kB / 461.6 MB, free: 5.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4597, allocations: 330.8 kB / 461.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.4603, allocations: 339.8 kB / 462.3 MB, free: 4.688 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006604/0.461, allocations: 415.2 kB / 462.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.4622, allocations: 0.7076 MB / 463.4 MB, free: 3.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4623, allocations: 4 kB / 463.4 MB, free: 3.516 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001695/0.464, allocations: 0.8796 MB / 464.3 MB, free: 2.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.464, allocations: 8.781 kB / 464.3 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.464, allocations: 0 / 464.3 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.464, allocations: 8.188 kB / 464.3 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006722/0.4647, allocations: 179.8 kB / 464.5 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.4647, allocations: 8.359 kB / 464.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/0.4651, allocations: 35.73 kB / 464.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.4653, allocations: 63.94 kB / 464.6 MB, free: 2.332 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002358/0.4655, allocations: 141.7 kB / 464.7 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-05/0.4656, allocations: 19.81 kB / 464.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007346/0.473, allocations: 7.978 MB / 472.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/0.473, allocations: 27.95 kB / 472.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.4731, allocations: 0 / 472.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4731, allocations: 3.984 kB / 472.7 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/0.4762, allocations: 3.592 MB / 476.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4762, allocations: 0 / 476.3 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006294/0.4768, allocations: 115.8 kB / 476.4 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.4769, allocations: 4 kB / 476.4 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.762e-05/0.4769, allocations: 11.94 kB / 476.5 MB, free: 6.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.4769, allocations: 3.984 kB / 476.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.477, allocations: 4 kB / 476.5 MB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/0.4794, allocations: 1.854 MB / 478.3 MB, free: 4.273 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.4796, allocations: 140.2 kB / 478.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-05/0.4796, allocations: 19.92 kB / 478.5 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.4799, allocations: 16 kB / 478.5 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.058e-05/0.48, allocations: 27.95 kB / 478.5 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.4801, allocations: 19.98 kB / 478.5 MB, free: 4.035 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.295e-05/0.4802, allocations: 95.33 kB / 478.6 MB, free: 3.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4802, allocations: 0 / 478.6 MB, free: 3.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002867/0.483, allocations: 0.976 MB / 479.6 MB, free: 2.965 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004904/0.488, allocations: 1.135 MB / 480.7 MB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.4897, allocations: 0.9043 MB / 481.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4897, allocations: 4.125 kB / 481.6 MB, free: 0.9141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007825/0.4905, allocations: 0.5908 MB / 482.2 MB, free: 328 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006591/0.4912, allocations: 83.86 kB / 482.3 MB, free: 244 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.4933, allocations: 1.624 MB / 483.9 MB, free: 14.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.4937, allocations: 0.8497 MB / 484.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.4941, allocations: 95.34 kB / 484.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4941, allocations: 0 / 484.9 MB, free: 13.61 MB / 378.7 MB Notification: Performance of Templates: time 0.03439/0.5285, allocations: 23.93 MB / 0.4969 GB, free: 5.609 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches