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.00107/0.00107, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 63.58 kB / 306.9 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08347/0.08461, allocations: 50.52 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01455/0.0992, allocations: 13.46 MB / 370.9 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1625/0.2617, allocations: 15.55 MB / 386.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.2619, allocations: 1.25 kB / 386.5 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.2623, allocations: 78.36 kB / 386.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.2627, allocations: 114.6 kB / 386.7 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01574/0.2784, allocations: 5.977 MB / 392.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.2788, allocations: 340.3 kB / 393 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.931e-05/0.2789, allocations: 16.11 kB / 393 MB, free: 2.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003911/0.2793, allocations: 225 kB / 393.2 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.2794, allocations: 104.5 kB / 393.3 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.2795, allocations: 18.59 kB / 393.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01249/0.292, allocations: 6.615 MB / 399.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.234e-05/0.2921, allocations: 49.92 kB / 400 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001859/0.2923, allocations: 105.3 kB / 400.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009137/0.3014, allocations: 3.921 MB / 404 MB, free: 12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3015, allocations: 3.938 kB / 404 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3015, allocations: 0 / 404 MB, free: 11.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3015, allocations: 0 / 404 MB, free: 11.99 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.002447/0.3039, allocations: 0.9915 MB / 405 MB, free: 11.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.304, allocations: 8.062 kB / 405 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001333/0.3053, allocations: 172 kB / 405.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.3056, allocations: 257.1 kB / 405.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.3056, allocations: 21.91 kB / 405.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.3057, allocations: 22.94 kB / 405.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003028/0.3087, allocations: 0.9108 MB / 406.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.3087, allocations: 0 / 406.4 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.3088, allocations: 15.03 kB / 406.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3088, allocations: 5.688 kB / 406.4 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003116/0.3119, allocations: 0.9697 MB / 407.4 MB, free: 9.352 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.001477/0.3134, allocations: 1.354 MB / 408.7 MB, free: 7.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.316, allocations: 0.7286 MB / 409.5 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.3163, allocations: 160.8 kB / 409.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0819/0.3982, allocations: 42 MB / 451.6 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.3983, allocations: 30.56 kB / 451.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.893e-06/0.3983, allocations: 0 / 451.6 MB, free: 7.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005392/0.4037, allocations: 1.366 MB / 453 MB, free: 6.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.4037, allocations: 63.34 kB / 453.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.4039, allocations: 117.8 kB / 453.2 MB, free: 5.977 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.777e-05/0.4039, allocations: 33.7 kB / 453.2 MB, free: 5.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.404, allocations: 112.7 kB / 453.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.4042, allocations: 114.3 kB / 453.4 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002626/0.4044, allocations: 161.9 kB / 453.6 MB, free: 5.547 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4046, allocations: 330.8 kB / 453.9 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006325/0.4052, allocations: 339.8 kB / 454.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007161/0.4059, allocations: 411.2 kB / 454.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.4073, allocations: 0.7142 MB / 455.4 MB, free: 3.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.4073, allocations: 4.75 kB / 455.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001858/0.4091, allocations: 0.8721 MB / 456.2 MB, free: 2.828 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4092, allocations: 10.97 kB / 456.3 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.4092, allocations: 256 / 456.3 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.4092, allocations: 11.94 kB / 456.3 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.4099, allocations: 171.8 kB / 456.4 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.4099, allocations: 4 kB / 456.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.4102, allocations: 34.14 kB / 456.5 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.4104, allocations: 63.94 kB / 456.5 MB, free: 2.543 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.000227/0.4106, allocations: 137.8 kB / 456.7 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.4108, allocations: 23.73 kB / 456.7 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007271/0.418, allocations: 7.97 MB / 464.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.583e-05/0.4181, allocations: 31.89 kB / 464.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.4181, allocations: 0 / 464.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.4181, allocations: 3.984 kB / 464.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.4212, allocations: 3.607 MB / 468.3 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.4212, allocations: 0 / 468.3 MB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006469/0.4219, allocations: 115.8 kB / 468.4 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4219, allocations: 0 / 468.4 MB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.422, allocations: 11.98 kB / 468.4 MB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.422, allocations: 7.938 kB / 468.4 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.422, allocations: 0 / 468.4 MB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.4244, allocations: 1.842 MB / 470.3 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.6e-05/0.4245, allocations: 140.2 kB / 470.4 MB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.633e-05/0.4245, allocations: 11.94 kB / 470.4 MB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000292/0.4248, allocations: 11.94 kB / 470.4 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/0.4249, allocations: 31.95 kB / 470.5 MB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.251e-05/0.425, allocations: 21.8 kB / 470.5 MB, free: 4.258 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.336e-05/0.4251, allocations: 95.2 kB / 470.6 MB, free: 4.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4251, allocations: 0 / 470.6 MB, free: 4.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002776/0.4279, allocations: 0.9877 MB / 471.6 MB, free: 3.176 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.004044/0.4319, allocations: 1.139 MB / 472.7 MB, free: 2.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.4339, allocations: 0.9185 MB / 473.6 MB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4339, allocations: 0 / 473.6 MB, free: 1.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007501/0.4346, allocations: 0.5915 MB / 474.2 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.4353, allocations: 97.05 kB / 474.3 MB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.4371, allocations: 1.322 MB / 475.6 MB, free: 15.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.4375, allocations: 0.8575 MB / 476.5 MB, free: 14.19 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.4394, allocations: 1.78 MB / 478.3 MB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/0.4397, allocations: 91.3 kB / 478.4 MB, free: 12.32 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4397, allocations: 0 / 478.4 MB, free: 12.32 MB / 398.1 MB Notification: Performance of Templates: time 0.05069/0.4904, allocations: 41.05 MB / 0.5072 GB, free: 3.223 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 -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