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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001452/0.001452, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.193/2.193, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 48.88 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.153, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.03032/0.1834, allocations: 13.33 MB / 363.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3372/0.5206, allocations: 15.54 MB / 379 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002219/0.5214, allocations: 4 kB / 379 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004999/0.522, allocations: 86.25 kB / 379.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005623/0.5226, allocations: 103.3 kB / 379.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02811/0.5507, allocations: 5.963 MB / 385.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006735/0.5514, allocations: 344.2 kB / 385.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.947e-05/0.5515, allocations: 14.66 kB / 385.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006817/0.5522, allocations: 220.9 kB / 385.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.5525, allocations: 106.4 kB / 385.9 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.5525, allocations: 18 kB / 385.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02231/0.5749, allocations: 6.603 MB / 392.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.5751, allocations: 51.33 kB / 392.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.5753, allocations: 110.8 kB / 392.6 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01551/0.5908, allocations: 3.904 MB / 396.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.083e-05/0.5909, allocations: 0 / 396.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.5909, allocations: 3.938 kB / 396.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.5909, allocations: 0 / 396.5 MB, free: 3.254 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.004747/0.5957, allocations: 0.9952 MB / 397.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.414e-05/0.5958, allocations: 7 kB / 397.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.362e-05/0.5959, allocations: 59.2 kB / 397.6 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/0.5984, allocations: 174.8 kB / 397.8 MB, free: 2.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.5988, allocations: 262.2 kB / 398 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.5988, allocations: 17.06 kB / 398 MB, free: 2.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.521e-05/0.5989, allocations: 21.62 kB / 398.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004798/0.6037, allocations: 0.9114 MB / 399 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.804e-05/0.6038, allocations: 0 / 399 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/0.6039, allocations: 8.75 kB / 399 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.6039, allocations: 5.531 kB / 399 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00505/0.6089, allocations: 0.9709 MB / 400 MB, free: 0.9492 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.002129/0.6111, allocations: 1.351 MB / 401.3 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004259/0.6154, allocations: 0.7403 MB / 402.1 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.6159, allocations: 151.7 kB / 402.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1301/0.7459, allocations: 37.39 MB / 439.6 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.007e-05/0.7461, allocations: 38.5 kB / 439.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 4.258e-06/0.7461, allocations: 0 / 439.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.01008/0.7562, allocations: 1.369 MB / 441 MB, free: 4.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.7563, allocations: 55.41 kB / 441.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.7565, allocations: 113.8 kB / 441.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.7566, allocations: 33.7 kB / 441.2 MB, free: 3.945 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.7567, allocations: 124.6 kB / 441.3 MB, free: 3.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000251/0.757, allocations: 113.8 kB / 441.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005302/0.7575, allocations: 165.5 kB / 441.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.7577, allocations: 330.8 kB / 441.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.7589, allocations: 331.8 kB / 442.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.7603, allocations: 411.3 kB / 442.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.7629, allocations: 0.7079 MB / 443.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.763, allocations: 4 kB / 443.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003581/0.7665, allocations: 0.8718 MB / 444.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.7666, allocations: 8 kB / 444.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.7666, allocations: 3.938 kB / 444.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.7667, allocations: 7.938 kB / 444.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.7679, allocations: 180.6 kB / 444.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.768, allocations: 4 kB / 444.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006642/0.7687, allocations: 36.02 kB / 444.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/0.7689, allocations: 63.94 kB / 444.5 MB, free: 0.543 MB / 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.0004443/0.7694, allocations: 142.5 kB / 444.7 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.7697, allocations: 19.81 kB / 444.7 MB, free: 384 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/0.7837, allocations: 7.974 MB / 452.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.448e-05/0.7838, allocations: 27.95 kB / 452.7 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.7838, allocations: 0 / 452.7 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.7839, allocations: 3.984 kB / 452.7 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005528/0.7894, allocations: 3.602 MB / 456.3 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.7895, allocations: 0 / 456.3 MB, free: 4.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.7907, allocations: 110.9 kB / 456.4 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.7907, allocations: 1.078 kB / 456.4 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.41e-05/0.7908, allocations: 19.92 kB / 456.4 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/0.7908, allocations: 4 kB / 456.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.7909, allocations: 4 kB / 456.4 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00454/0.7954, allocations: 1.827 MB / 458.3 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.7957, allocations: 144.2 kB / 458.4 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.7958, allocations: 15.94 kB / 458.4 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005217/0.7963, allocations: 12.06 kB / 458.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.7965, allocations: 31.95 kB / 458.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.902e-05/0.7966, allocations: 19.98 kB / 458.5 MB, free: 2.289 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.786e-05/0.7967, allocations: 95.2 kB / 458.6 MB, free: 2.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.307e-06/0.7967, allocations: 0 / 458.6 MB, free: 2.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005563/0.8023, allocations: 0.9876 MB / 459.6 MB, free: 1.207 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.01465/0.817, allocations: 3.423 MB / 463 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003821/0.8209, allocations: 0.9184 MB / 463.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.8209, allocations: 0 / 463.9 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.8224, allocations: 0.5885 MB / 464.5 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/0.8237, allocations: 92.64 kB / 464.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.8404, allocations: 4.655 MB / 469.2 MB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/0.8412, allocations: 0.8575 MB / 470.1 MB, free: 6.578 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003915/0.8451, allocations: 1.78 MB / 471.9 MB, free: 4.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008099/0.8459, allocations: 219.3 kB / 472.1 MB, free: 4.582 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.846, allocations: 4 kB / 472.1 MB, free: 4.578 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1351/0.9811, allocations: 45.6 MB / 0.5056 GB, free: 7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.84/16.83, allocations: 0 / 0.5056 GB, free: 7 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/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