Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001157/0.001157, allocations: 114.4 kB / 17.69 MB, free: 5.312 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.001107/0.001107, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009185/0.0009186, allocations: 42.92 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08064/0.08158, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01456/0.09617, allocations: 13.32 MB / 364.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/0.2944, allocations: 15.54 MB / 380.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.2945, allocations: 1.375 kB / 380.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003873/0.2949, allocations: 88.92 kB / 380.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.2953, allocations: 109.4 kB / 380.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01512/0.3105, allocations: 5.959 MB / 386.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.3109, allocations: 339.4 kB / 386.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.612e-05/0.311, allocations: 19.8 kB / 386.9 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003946/0.3114, allocations: 226.4 kB / 387.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.3115, allocations: 109.7 kB / 387.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.3116, allocations: 13.72 kB / 387.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01242/0.324, allocations: 6.761 MB / 394 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.766e-05/0.3241, allocations: 45.98 kB / 394 MB, free: 5.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.3243, allocations: 103.3 kB / 394.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009367/0.3337, allocations: 3.897 MB / 398 MB, free: 3.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3337, allocations: 3.984 kB / 398 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3338, allocations: 4 kB / 398 MB, free: 3.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3338, allocations: 0 / 398 MB, free: 3.5 MB / 302.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.00261/0.3364, allocations: 0.9857 MB / 399 MB, free: 2.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.3364, allocations: 10.16 kB / 399 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.3378, allocations: 175.1 kB / 399.2 MB, free: 2.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.3381, allocations: 261 kB / 399.4 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.3381, allocations: 22.06 kB / 399.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.3382, allocations: 27.7 kB / 399.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/0.341, allocations: 0.8995 MB / 400.4 MB, free: 1.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.341, allocations: 7.875 kB / 400.4 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.3411, allocations: 10.59 kB / 400.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.3411, allocations: 5.469 kB / 400.4 MB, free: 1.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.344, allocations: 0.9713 MB / 401.4 MB, free: 1.25 MB / 302.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.001192/0.3452, allocations: 1.339 MB / 402.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002526/0.3477, allocations: 0.7364 MB / 403.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.348, allocations: 158.1 kB / 403.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07107/0.4191, allocations: 37.55 MB / 441.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.4192, allocations: 40.69 kB / 441.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.775e-06/0.4192, allocations: 0 / 441.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005379/0.4246, allocations: 1.353 MB / 442.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.4246, allocations: 63.34 kB / 442.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4247, allocations: 125.8 kB / 442.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.4248, allocations: 29.7 kB / 442.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.4249, allocations: 120.5 kB / 442.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.425, allocations: 110.4 kB / 443 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.4253, allocations: 173.4 kB / 443.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4254, allocations: 326.8 kB / 443.5 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006083/0.426, allocations: 331.8 kB / 443.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007038/0.4267, allocations: 419.2 kB / 444.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.4281, allocations: 0.7075 MB / 444.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4281, allocations: 0 / 444.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001807/0.4299, allocations: 0.868 MB / 445.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.4299, allocations: 8 kB / 445.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.4299, allocations: 4 kB / 445.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.43, allocations: 3.938 kB / 445.8 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/0.4306, allocations: 180 kB / 446 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.4307, allocations: 11.94 kB / 446 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.431, allocations: 27.73 kB / 446 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.4311, allocations: 64.31 kB / 446.1 MB, free: 488 kB / 350.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.0002176/0.4314, allocations: 149.6 kB / 446.2 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.4315, allocations: 19.81 kB / 446.3 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0073/0.4388, allocations: 7.958 MB / 454.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/0.4389, allocations: 31.89 kB / 454.2 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.4389, allocations: 0 / 454.2 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.4389, allocations: 3.984 kB / 454.2 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/0.4418, allocations: 3.604 MB / 457.9 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.4419, allocations: 7.125 kB / 457.9 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006229/0.4425, allocations: 103.8 kB / 458 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.4425, allocations: 0 / 458 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.393e-05/0.4426, allocations: 23.98 kB / 458 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.4426, allocations: 3.938 kB / 458 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4426, allocations: 0 / 458 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002262/0.4448, allocations: 1.839 MB / 459.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.458e-05/0.4449, allocations: 148 kB / 460 MB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.445, allocations: 12.06 kB / 460 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.4453, allocations: 15.94 kB / 460 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.4454, allocations: 31.95 kB / 460 MB, free: 2.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.4454, allocations: 15.98 kB / 460 MB, free: 2.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.993e-05/0.4455, allocations: 91.27 kB / 460.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4455, allocations: 0 / 460.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00311/0.4486, allocations: 0.9838 MB / 461.1 MB, free: 1.141 MB / 366.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.00355/0.4522, allocations: 1.122 MB / 462.2 MB, free: 100 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.4537, allocations: 0.9008 MB / 463.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4537, allocations: 3.938 kB / 463.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006887/0.4544, allocations: 0.5918 MB / 463.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.455, allocations: 85.17 kB / 463.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.4566, allocations: 1.316 MB / 465.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.457, allocations: 0.8575 MB / 466 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001698/0.4587, allocations: 1.783 MB / 467.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003193/0.459, allocations: 87.36 kB / 467.9 MB, free: 10.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.459, allocations: 0 / 467.9 MB, free: 10.42 MB / 382.1 MB Notification: Performance of Templates: time 0.05171/0.5107, allocations: 40.78 MB / 0.4967 GB, free: 1.629 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches