Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_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.001849/0.001849, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.002357/0.002357, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.449/2.449, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 47.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1228, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02757/0.1504, allocations: 13.33 MB / 340.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.03783/0.1883, allocations: 15.54 MB / 356.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003221/0.1887, allocations: 0 / 356.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007463/0.1895, allocations: 83.47 kB / 356.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008531/0.1904, allocations: 111.2 kB / 356.4 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02948/0.2199, allocations: 5.951 MB / 362.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009222/0.2209, allocations: 342.6 kB / 362.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.221, allocations: 9.688 kB / 362.7 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.2221, allocations: 223 kB / 363 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003882/0.2225, allocations: 115.6 kB / 363.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.2226, allocations: 12 kB / 363.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02439/0.247, allocations: 6.595 MB / 369.7 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.2472, allocations: 47.83 kB / 369.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.2476, allocations: 107.5 kB / 369.8 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01797/0.2656, allocations: 3.891 MB / 373.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.2656, allocations: 0 / 373.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.2657, allocations: 4 kB / 373.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.2657, allocations: 0 / 373.7 MB, free: 5.891 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.005005/0.2707, allocations: 0.9869 MB / 374.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.513e-05/0.2708, allocations: 8.031 kB / 374.7 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.2709, allocations: 62.72 kB / 374.8 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002662/0.2736, allocations: 176.5 kB / 375 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005867/0.2742, allocations: 256 kB / 375.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.2e-05/0.2743, allocations: 20.8 kB / 375.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.753e-05/0.2744, allocations: 32.12 kB / 375.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005482/0.2799, allocations: 0.9012 MB / 376.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.28, allocations: 3.938 kB / 376.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-05/0.28, allocations: 8 kB / 376.2 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.2801, allocations: 4 kB / 376.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005248/0.2853, allocations: 0.9734 MB / 377.1 MB, free: 2.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.002228/0.2876, allocations: 1.342 MB / 378.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.2904, allocations: 0.7284 MB / 379.2 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2393/0.5297, allocations: 153.5 kB / 379.4 MB, free: 54.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09299/0.6227, allocations: 37.41 MB / 416.8 MB, free: 24.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.6228, allocations: 34.56 kB / 416.8 MB, free: 24.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.995e-06/0.6228, allocations: 4 kB / 416.8 MB, free: 24.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.007935/0.6308, allocations: 1.365 MB / 418.2 MB, free: 22.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.6309, allocations: 55.41 kB / 418.2 MB, free: 22.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.6311, allocations: 113.8 kB / 418.3 MB, free: 22.53 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.6313, allocations: 34.64 kB / 418.4 MB, free: 22.49 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.44e-05/0.6314, allocations: 115.1 kB / 418.5 MB, free: 22.39 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.6316, allocations: 121.8 kB / 418.6 MB, free: 22.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000445/0.632, allocations: 161.5 kB / 418.8 MB, free: 22.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.346e-05/0.6321, allocations: 326.8 kB / 419.1 MB, free: 21.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.6332, allocations: 339.8 kB / 419.4 MB, free: 21.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.6342, allocations: 408.1 kB / 419.8 MB, free: 21.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.6363, allocations: 0.7068 MB / 420.5 MB, free: 20.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.6364, allocations: 0 / 420.5 MB, free: 20.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002517/0.6389, allocations: 0.8763 MB / 421.4 MB, free: 19.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.639, allocations: 4.562 kB / 421.4 MB, free: 19.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.639, allocations: 4 kB / 421.4 MB, free: 19.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.267e-05/0.639, allocations: 7.938 kB / 421.4 MB, free: 19.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.6399, allocations: 180.8 kB / 421.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.6399, allocations: 4 kB / 421.6 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.6403, allocations: 28.84 kB / 421.6 MB, free: 19.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.6404, allocations: 70.53 kB / 421.7 MB, free: 19.14 MB / 318.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.0003265/0.6407, allocations: 137.8 kB / 421.8 MB, free: 18.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003135/0.6411, allocations: 15.81 kB / 421.8 MB, free: 18.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0101/0.6512, allocations: 7.973 MB / 429.8 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.293e-05/0.6513, allocations: 36.77 kB / 429.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.6513, allocations: 0 / 429.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.6513, allocations: 0 / 429.8 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.6551, allocations: 3.595 MB / 433.4 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.6551, allocations: 0 / 433.4 MB, free: 7.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.6562, allocations: 115.8 kB / 433.6 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/0.6562, allocations: 7.641 kB / 433.6 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.705e-05/0.6563, allocations: 8 kB / 433.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.6564, allocations: 7.938 kB / 433.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6564, allocations: 1.75 kB / 433.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003595/0.66, allocations: 1.838 MB / 435.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.6601, allocations: 140.2 kB / 435.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.067e-05/0.6602, allocations: 8 kB / 435.6 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.6608, allocations: 15.92 kB / 435.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.6609, allocations: 32.02 kB / 435.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.99e-05/0.661, allocations: 19.84 kB / 435.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.153e-05/0.6611, allocations: 91.27 kB / 435.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6611, allocations: 4 kB / 435.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.004478/0.6656, allocations: 0.9796 MB / 436.7 MB, free: 3.91 MB / 318.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.01242/0.6781, allocations: 3.408 MB / 440.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003616/0.6818, allocations: 0.9188 MB / 441 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.6818, allocations: 0 / 441 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.6834, allocations: 0.5869 MB / 441.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.6847, allocations: 91.67 kB / 441.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/0.7006, allocations: 4.637 MB / 446.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000734/0.7014, allocations: 0.8575 MB / 447.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.003682/0.7051, allocations: 1.783 MB / 449 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008807/0.7061, allocations: 223.2 kB / 449.2 MB, free: 7.383 MB / 334.1 MB Notification: Performance of SimCode: time 1.553e-06/0.7061, allocations: 3.938 kB / 449.2 MB, free: 7.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1388/0.8449, allocations: 45.54 MB / 494.7 MB, free: 9.672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/18.49, allocations: 12.53 kB / 494.8 MB, free: 9.66 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches