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.001298/0.001299, allocations: 109.4 kB / 18.4 MB, free: 4.66 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.001258/0.001258, allocations: 189.2 kB / 19.33 MB, free: 3.738 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.291/1.291, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001235/0.001235, allocations: 51.92 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.079/0.08024, allocations: 46.62 MB / 378.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1881/0.2684, allocations: 13.32 MB / 391.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01751/0.2859, allocations: 15.54 MB / 407 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002916/0.2863, allocations: 9.031 kB / 407 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.2868, allocations: 83.36 kB / 407.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004823/0.2873, allocations: 110.5 kB / 407.2 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02092/0.3082, allocations: 5.958 MB / 413.1 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005546/0.3088, allocations: 333 kB / 413.5 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.997e-05/0.3089, allocations: 17.08 kB / 413.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005394/0.3094, allocations: 232.8 kB / 413.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.3097, allocations: 103.7 kB / 413.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.4e-05/0.3097, allocations: 13.62 kB / 413.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01488/0.3246, allocations: 6.743 MB / 420.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3248, allocations: 41.17 kB / 420.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.325, allocations: 104.7 kB / 420.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01098/0.336, allocations: 3.892 MB / 424.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.336, allocations: 4 kB / 424.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.336, allocations: 7.938 kB / 424.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.413e-05/0.336, allocations: 0 / 424.6 MB, free: 14.93 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.003143/0.3392, allocations: 0.9874 MB / 425.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3393, allocations: 8.031 kB / 425.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/0.3407, allocations: 172.6 kB / 425.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.3412, allocations: 256.1 kB / 426 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.3412, allocations: 16.81 kB / 426.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.3413, allocations: 32.03 kB / 426.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003217/0.3445, allocations: 0.9068 MB / 427 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3445, allocations: 7.938 kB / 427 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.3446, allocations: 8 kB / 427 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.3446, allocations: 8 kB / 427 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003261/0.3478, allocations: 0.9656 MB / 428 MB, free: 11.46 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.00166/0.3495, allocations: 1.346 MB / 429.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.3522, allocations: 0.7244 MB / 430 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.3524, allocations: 160.8 kB / 430.2 MB, free: 9.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07103/0.4235, allocations: 37.54 MB / 467.8 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.4236, allocations: 40.75 kB / 467.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.4236, allocations: 0 / 467.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005266/0.4288, allocations: 1.356 MB / 469.1 MB, free: 13.69 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.4289, allocations: 63.34 kB / 469.2 MB, free: 13.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.429, allocations: 125.7 kB / 469.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/0.4291, allocations: 29.7 kB / 469.4 MB, free: 13.45 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.747e-05/0.4292, allocations: 112.7 kB / 469.5 MB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.4293, allocations: 114.4 kB / 469.6 MB, free: 13.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.4296, allocations: 161.5 kB / 469.7 MB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.4297, allocations: 322.8 kB / 470.1 MB, free: 12.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/0.4303, allocations: 343.8 kB / 470.4 MB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006747/0.431, allocations: 411.2 kB / 470.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.4322, allocations: 0.6998 MB / 471.5 MB, free: 11.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4323, allocations: 8 kB / 471.5 MB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00172/0.434, allocations: 0.8679 MB / 472.4 MB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.434, allocations: 4 kB / 472.4 MB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.434, allocations: 7.938 kB / 472.4 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4341, allocations: 4.25 kB / 472.4 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006909/0.4348, allocations: 180.1 kB / 472.6 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.4348, allocations: 11.92 kB / 472.6 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.4351, allocations: 31.69 kB / 472.6 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.4353, allocations: 67.92 kB / 472.7 MB, free: 10.05 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.0002385/0.4355, allocations: 137.7 kB / 472.8 MB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.4356, allocations: 15.81 kB / 472.8 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007056/0.4427, allocations: 7.974 MB / 480.8 MB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.039e-05/0.4428, allocations: 31.89 kB / 480.8 MB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.4428, allocations: 0 / 480.8 MB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4428, allocations: 0 / 480.8 MB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.4457, allocations: 3.592 MB / 484.4 MB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.4457, allocations: 0.6875 kB / 484.4 MB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006567/0.4464, allocations: 107.9 kB / 484.5 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.4464, allocations: 3.938 kB / 484.5 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.4464, allocations: 19.92 kB / 484.5 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.4464, allocations: 6.812 kB / 484.6 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.4465, allocations: 0 / 484.6 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.4488, allocations: 1.835 MB / 486.4 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.4489, allocations: 148 kB / 486.5 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.376e-05/0.449, allocations: 15.94 kB / 486.5 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.4493, allocations: 19.97 kB / 486.6 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.4494, allocations: 23.97 kB / 486.6 MB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.4494, allocations: 19.98 kB / 486.6 MB, free: 11.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.064e-05/0.4495, allocations: 91.27 kB / 486.7 MB, free: 11.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4495, allocations: 0 / 486.7 MB, free: 11.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002822/0.4523, allocations: 0.9722 MB / 487.7 MB, free: 10.72 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.004114/0.4565, allocations: 1.123 MB / 488.8 MB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001635/0.4581, allocations: 0.9113 MB / 489.7 MB, free: 8.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4581, allocations: 0 / 489.7 MB, free: 8.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.4589, allocations: 0.5946 MB / 490.3 MB, free: 8.086 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.4595, allocations: 73.12 kB / 490.4 MB, free: 8.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.4613, allocations: 1.349 MB / 491.7 MB, free: 6.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.4617, allocations: 0.8575 MB / 492.6 MB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003262/0.462, allocations: 87.36 kB / 492.7 MB, free: 5.668 MB / 414.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4621, allocations: 0 / 492.7 MB, free: 5.668 MB / 414.1 MB Notification: Performance of Templates: time 0.03416/0.4962, allocations: 23.98 MB / 0.5045 GB, free: 13.62 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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