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.001787/0.001787, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001992/0.001992, allocations: 189.4 kB / 18 MB, free: 5.102 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 43.92 kB / 353.1 MB, free: 1.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2275, allocations: 49.44 MB / 402.5 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01606/0.2436, allocations: 13.32 MB / 415.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.262, allocations: 15.56 MB / 431.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.2622, allocations: 4 kB / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.2625, allocations: 79.48 kB / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000322/0.2629, allocations: 119.2 kB / 431.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0144/0.2773, allocations: 5.953 MB / 437.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.2778, allocations: 346.5 kB / 437.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.682e-05/0.2779, allocations: 25.61 kB / 437.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004695/0.2783, allocations: 215.1 kB / 438.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.2785, allocations: 107.6 kB / 438.3 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.2e-05/0.2786, allocations: 16 kB / 438.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01261/0.2912, allocations: 6.755 MB / 445 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.937e-05/0.2913, allocations: 39.91 kB / 445.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.2915, allocations: 111.5 kB / 445.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007843/0.2993, allocations: 3.898 MB / 449.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2994, allocations: 0 / 449.1 MB, free: 9.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2994, allocations: 11.88 kB / 449.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.2994, allocations: 0 / 449.1 MB, free: 9.172 MB / 366.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.002427/0.3018, allocations: 1.018 MB / 450.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3019, allocations: 8.031 kB / 450.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.778e-05/0.3019, allocations: 62.72 kB / 450.2 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001371/0.3033, allocations: 172.7 kB / 450.3 MB, free: 7.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003476/0.3037, allocations: 260 kB / 450.6 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/0.3037, allocations: 20.81 kB / 450.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.77e-05/0.3038, allocations: 23.94 kB / 450.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003002/0.3068, allocations: 0.9128 MB / 451.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.3068, allocations: 3.984 kB / 451.6 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.3068, allocations: 4 kB / 451.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.3068, allocations: 8 kB / 451.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003183/0.31, allocations: 0.9695 MB / 452.5 MB, free: 5.598 MB / 366.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.001654/0.3117, allocations: 1.343 MB / 453.9 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002514/0.3142, allocations: 0.7321 MB / 454.6 MB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.3145, allocations: 156.8 kB / 454.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07976/0.3943, allocations: 37.56 MB / 492.3 MB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/0.3944, allocations: 34.56 kB / 492.4 MB, free: 9.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/0.3944, allocations: 4 kB / 492.4 MB, free: 9.176 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005265/0.3997, allocations: 1.365 MB / 493.7 MB, free: 7.805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.273e-05/0.3997, allocations: 55.41 kB / 493.8 MB, free: 7.738 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.3999, allocations: 121.8 kB / 493.9 MB, free: 7.609 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.452e-05/0.3999, allocations: 29.7 kB / 493.9 MB, free: 7.574 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.4, allocations: 120.8 kB / 494 MB, free: 7.453 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.4002, allocations: 127 kB / 494.2 MB, free: 7.328 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003083/0.4005, allocations: 169.3 kB / 494.3 MB, free: 7.156 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4007, allocations: 331.2 kB / 494.7 MB, free: 6.824 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006579/0.4013, allocations: 327.8 kB / 495 MB, free: 6.504 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007538/0.4021, allocations: 415.3 kB / 495.4 MB, free: 6.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.4035, allocations: 0.7113 MB / 496.1 MB, free: 5.332 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4035, allocations: 0 / 496.1 MB, free: 5.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0019/0.4054, allocations: 0.8759 MB / 497 MB, free: 4.449 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.4055, allocations: 15.92 kB / 497 MB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4055, allocations: 4 kB / 497 MB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4055, allocations: 0 / 497 MB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.4062, allocations: 179.7 kB / 497.2 MB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.4062, allocations: 4 kB / 497.2 MB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.4065, allocations: 27.83 kB / 497.2 MB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.4067, allocations: 64.12 kB / 497.3 MB, free: 4.16 MB / 414.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.0002232/0.4069, allocations: 141.8 kB / 497.4 MB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.4071, allocations: 23.83 kB / 497.4 MB, free: 3.988 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00832/0.4154, allocations: 7.959 MB / 0.4935 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.4154, allocations: 31.95 kB / 0.4936 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4155, allocations: 7.984 kB / 0.4936 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.4155, allocations: 3.984 kB / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/0.4189, allocations: 3.6 MB / 0.4971 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.639e-06/0.4189, allocations: 7.938 kB / 0.4971 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006316/0.4196, allocations: 111.8 kB / 0.4972 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.4196, allocations: 3.938 kB / 0.4972 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.4196, allocations: 15.98 kB / 0.4972 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.4196, allocations: 0 / 0.4972 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4197, allocations: 0 / 0.4972 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00263/0.4223, allocations: 1.847 MB / 0.499 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.4224, allocations: 144.5 kB / 0.4992 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/0.4225, allocations: 7.938 kB / 0.4992 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.4228, allocations: 12 kB / 0.4992 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.712e-05/0.4229, allocations: 36.02 kB / 0.4992 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.4229, allocations: 15.98 kB / 0.4992 GB, free: 5.875 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.976e-05/0.423, allocations: 95.2 kB / 0.4993 GB, free: 5.781 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.963e-06/0.423, allocations: 0 / 0.4993 GB, free: 5.781 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002496/0.4255, allocations: 0.9902 MB / 0.5003 GB, free: 4.789 MB / 430.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.006873/0.4324, allocations: 3.436 MB / 0.5036 GB, free: 1.324 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.434, allocations: 0.8951 MB / 0.5045 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.434, allocations: 0 / 0.5045 GB, free: 436 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008015/0.4349, allocations: 0.5919 MB / 0.5051 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/0.4355, allocations: 87.72 kB / 0.5052 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007625/0.4431, allocations: 4.668 MB / 0.5097 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.4436, allocations: 0.8614 MB / 0.5106 GB, free: 10.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002046/0.4457, allocations: 1.78 MB / 0.5123 GB, free: 8.281 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004749/0.4462, allocations: 223.3 kB / 0.5125 GB, free: 8.062 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4462, allocations: 0 / 0.5125 GB, free: 8.062 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2552/0.7014, allocations: 45.57 MB / 0.557 GB, free: 114 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.59, allocations: 6.484 kB / 0.557 GB, free: 114 MB / 462.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