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.00132/0.00132, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 59.61 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09373, allocations: 50.55 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1714/0.2652, allocations: 13.44 MB / 372.3 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.281, allocations: 15.56 MB / 387.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/0.2812, allocations: 1.281 kB / 387.9 MB, free: 4.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.2816, allocations: 83.55 kB / 388 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.282, allocations: 111.6 kB / 388.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01766/0.2996, allocations: 5.968 MB / 394.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.3001, allocations: 338.6 kB / 394.4 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.256e-05/0.3002, allocations: 15.77 kB / 394.4 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004136/0.3006, allocations: 232.5 kB / 394.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.3007, allocations: 104 kB / 394.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.757e-05/0.3008, allocations: 14.44 kB / 394.7 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01302/0.3138, allocations: 6.778 MB / 401.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.3139, allocations: 45.59 kB / 401.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.3141, allocations: 101.5 kB / 401.7 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009676/0.3238, allocations: 3.912 MB / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3239, allocations: 0 / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3239, allocations: 0 / 405.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3239, allocations: 0 / 405.6 MB, free: 11.57 MB / 318.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.002432/0.3263, allocations: 0.9897 MB / 406.6 MB, free: 10.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3264, allocations: 13.41 kB / 406.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.3278, allocations: 172.5 kB / 406.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.3281, allocations: 257.5 kB / 407 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.3282, allocations: 21.03 kB / 407 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.3282, allocations: 22.31 kB / 407 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002968/0.3312, allocations: 0.9122 MB / 408 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3312, allocations: 0 / 408 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.99e-05/0.3312, allocations: 8 kB / 408 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.3313, allocations: 8 kB / 408 MB, free: 9.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003111/0.3344, allocations: 0.9694 MB / 408.9 MB, free: 8.695 MB / 318.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.00181/0.3362, allocations: 1.357 MB / 410.3 MB, free: 7.207 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002508/0.3387, allocations: 0.7325 MB / 411 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.3391, allocations: 156.8 kB / 411.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07381/0.4129, allocations: 42.17 MB / 453.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/0.413, allocations: 34.56 kB / 453.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.413, allocations: 0 / 453.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005184/0.4182, allocations: 1.362 MB / 454.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.4182, allocations: 59.34 kB / 454.8 MB, free: 5.289 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.4183, allocations: 121.8 kB / 454.9 MB, free: 5.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.4184, allocations: 29.7 kB / 455 MB, free: 5.125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.05e-05/0.4185, allocations: 116.7 kB / 455.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.4186, allocations: 118.3 kB / 455.2 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/0.4189, allocations: 161.6 kB / 455.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.419, allocations: 326.8 kB / 455.7 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005938/0.4196, allocations: 335.6 kB / 456 MB, free: 4.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006809/0.4203, allocations: 419.5 kB / 456.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.4216, allocations: 0.7064 MB / 457.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4216, allocations: 0 / 457.1 MB, free: 2.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001837/0.4235, allocations: 0.876 MB / 458 MB, free: 2.016 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.4235, allocations: 8 kB / 458 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.4235, allocations: 3.938 kB / 458 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4236, allocations: 7.938 kB / 458 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006817/0.4242, allocations: 176 kB / 458.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4243, allocations: 8 kB / 458.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.4246, allocations: 27.77 kB / 458.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.4247, allocations: 64.31 kB / 458.3 MB, free: 1.727 MB / 366.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.0002154/0.425, allocations: 150.6 kB / 458.4 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.4251, allocations: 19.75 kB / 458.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007569/0.4327, allocations: 7.958 MB / 466.4 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.908e-05/0.4327, allocations: 31.89 kB / 466.4 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4327, allocations: 0 / 466.4 MB, free: 9.547 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4328, allocations: 7.922 kB / 466.4 MB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.4356, allocations: 3.6 MB / 470 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4356, allocations: 0 / 470 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006523/0.4363, allocations: 111.8 kB / 470.1 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4363, allocations: 0 / 470.1 MB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/0.4363, allocations: 19.97 kB / 470.2 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.4364, allocations: 7.938 kB / 470.2 MB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4364, allocations: 0 / 470.2 MB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/0.4386, allocations: 1.835 MB / 472 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.283e-05/0.4387, allocations: 148.2 kB / 472.1 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.009e-05/0.4388, allocations: 8.062 kB / 472.2 MB, free: 3.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002986/0.4391, allocations: 15.94 kB / 472.2 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.4392, allocations: 31.95 kB / 472.2 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.4393, allocations: 15.98 kB / 472.2 MB, free: 3.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.4393, allocations: 95.2 kB / 472.3 MB, free: 3.359 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4393, allocations: 0 / 472.3 MB, free: 3.359 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002683/0.442, allocations: 0.9877 MB / 473.3 MB, free: 2.371 MB / 382.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.003646/0.4457, allocations: 1.139 MB / 474.4 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.4472, allocations: 0.9029 MB / 475.3 MB, free: 332 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4472, allocations: 288 / 475.3 MB, free: 332 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007226/0.448, allocations: 0.5877 MB / 475.9 MB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.4486, allocations: 81.92 kB / 476 MB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.4504, allocations: 1.328 MB / 477.3 MB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.4507, allocations: 0.8575 MB / 478.2 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001785/0.4525, allocations: 1.776 MB / 480 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.4529, allocations: 95.34 kB / 480.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4529, allocations: 0 / 480.1 MB, free: 11.55 MB / 398.1 MB Notification: Performance of Templates: time 0.05178/0.5047, allocations: 40.88 MB / 0.5087 GB, free: 2.617 MB / 430.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches