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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008386/0.0008387, allocations: 93.28 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.622e-05, allocations: 0 / 343.7 MB, free: 8.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.163/9.288, allocations: 3.026 GB / 3.412 GB, free: 97.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02762/9.316, allocations: 11.17 MB / 3.423 GB, free: 96.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.318/9.634, allocations: 111.4 MB / 3.532 GB, free: 38.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.923e-06/9.634, allocations: 0 / 3.532 GB, free: 38.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/9.634, allocations: 4 kB / 3.532 GB, free: 38.18 MB / 442.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.006437/9.64, allocations: 1.145 MB / 3.533 GB, free: 36.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/9.641, allocations: 12.03 kB / 3.533 GB, free: 36.98 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001514/9.642, allocations: 180.5 kB / 3.533 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/9.642, allocations: 258.4 kB / 3.533 GB, free: 36.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/9.643, allocations: 4 kB / 3.533 GB, free: 36.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-05/9.643, allocations: 19.94 kB / 3.533 GB, free: 36.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005537/9.643, allocations: 340.7 kB / 3.534 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004129/9.644, allocations: 278.7 kB / 3.534 GB, free: 35.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/9.644, allocations: 4 kB / 3.534 GB, free: 35.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/9.644, allocations: 3.984 kB / 3.534 GB, free: 35.85 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/9.644, allocations: 4 kB / 3.534 GB, free: 35.85 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001555/9.645, allocations: 1.302 MB / 3.535 GB, free: 34.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/9.646, allocations: 258.4 kB / 3.535 GB, free: 34.18 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/9.646, allocations: 133.4 kB / 3.536 GB, free: 34.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.479/10.12, allocations: 41.97 MB / 3.577 GB, free: 56.58 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/10.12, allocations: 37.56 kB / 3.577 GB, free: 56.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 3.456e-06/10.12, allocations: 0 / 3.577 GB, free: 56.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.002987/10.13, allocations: 0.7884 MB / 3.577 GB, free: 56.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/10.13, allocations: 54.62 kB / 3.577 GB, free: 56.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/10.13, allocations: 109.7 kB / 3.577 GB, free: 56.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/10.13, allocations: 29.89 kB / 3.578 GB, free: 56.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/10.13, allocations: 115.8 kB / 3.578 GB, free: 56.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/10.13, allocations: 120.5 kB / 3.578 GB, free: 56.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/10.13, allocations: 0 / 3.578 GB, free: 56.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.872e-05/10.13, allocations: 322.3 kB / 3.578 GB, free: 55.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/10.13, allocations: 304.8 kB / 3.578 GB, free: 55.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004595/10.13, allocations: 381.7 kB / 3.579 GB, free: 55.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/10.13, allocations: 411.9 kB / 3.579 GB, free: 55.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/10.13, allocations: 3.609 kB / 3.579 GB, free: 55.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002826/10.13, allocations: 0.9066 MB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/10.13, allocations: 6.156 kB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/10.13, allocations: 6.375 kB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/10.13, allocations: 2.969 kB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006928/10.13, allocations: 178.8 kB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/10.13, allocations: 6.875 kB / 3.58 GB, free: 55.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/10.14, allocations: 36.64 kB / 3.58 GB, free: 55.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/10.14, allocations: 64.41 kB / 3.58 GB, free: 55.73 MB / 442.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 () * 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.0001838/10.14, allocations: 112.1 kB / 3.58 GB, free: 55.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.149e-05/10.14, allocations: 19.91 kB / 3.58 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006454/10.14, allocations: 6.516 MB / 3.587 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.463e-05/10.14, allocations: 23.73 kB / 3.587 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/10.14, allocations: 3.312 kB / 3.587 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/10.14, allocations: 0 / 3.587 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/10.14, allocations: 2.818 MB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/10.14, allocations: 6.047 kB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007267/10.15, allocations: 124.7 kB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/10.15, allocations: 5.406 kB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/10.15, allocations: 26.12 kB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/10.15, allocations: 1.062 kB / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/10.15, allocations: 0 / 3.59 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/10.15, allocations: 1.748 MB / 3.591 GB, free: 54.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/10.15, allocations: 139.5 kB / 3.592 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.011e-05/10.15, allocations: 0 / 3.592 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/10.15, allocations: 20.36 kB / 3.592 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/10.15, allocations: 36.69 kB / 3.592 GB, free: 54.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.616e-05/10.15, allocations: 33.02 kB / 3.592 GB, free: 54.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.044e-05/10.15, allocations: 86.03 kB / 3.592 GB, free: 54.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/10.15, allocations: 1.312 kB / 3.592 GB, free: 54.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005739/10.15, allocations: 1.004 MB / 3.593 GB, free: 54.23 MB / 442.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: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.008702/10.16, allocations: 1.298 MB / 3.594 GB, free: 54.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/10.17, allocations: 0.8347 MB / 3.595 GB, free: 54.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/10.17, allocations: 3.844 kB / 3.595 GB, free: 54.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006794/10.17, allocations: 0.5562 MB / 3.595 GB, free: 54.12 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/10.17, allocations: 74.09 kB / 3.595 GB, free: 54.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/10.17, allocations: 0.9928 MB / 3.596 GB, free: 53.95 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/10.17, allocations: 0.8513 MB / 3.597 GB, free: 53.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002899/10.17, allocations: 2.74 MB / 3.6 GB, free: 53.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/10.17, allocations: 100.8 kB / 3.6 GB, free: 53.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/10.17, allocations: 0 / 3.6 GB, free: 53.21 MB / 442.7 MB Notification: Performance of Templates: time 0.05845/10.23, allocations: 29.53 MB / 3.629 GB, free: 52.49 MB / 442.7 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","../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches