Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001334, allocations: 117.4 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 208.5 kB / 18.79 MB, free: 4.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.42/1.42, allocations: 230.4 MB / 250 MB, free: 9.117 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.84 kB / 367.7 MB, free: 6.734 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2655, allocations: 53.3 MB / 421 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01665/0.2822, allocations: 13.51 MB / 434.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01821/0.3004, allocations: 15.6 MB / 450.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.3006, allocations: 0 / 450.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003608/0.3009, allocations: 87.47 kB / 450.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003508/0.3013, allocations: 111.2 kB / 450.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01568/0.3169, allocations: 5.984 MB / 456.3 MB, free: 4.648 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005373/0.3175, allocations: 346.6 kB / 456.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.158e-05/0.3175, allocations: 9.625 kB / 456.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000531/0.3181, allocations: 239 kB / 456.8 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001797/0.3182, allocations: 99.66 kB / 456.9 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.3183, allocations: 16 kB / 457 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01374/0.332, allocations: 6.782 MB / 463.7 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.3321, allocations: 43.83 kB / 463.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.3324, allocations: 103.6 kB / 463.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01119/0.3435, allocations: 3.921 MB / 467.8 MB, free: 9.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.786e-06/0.3436, allocations: 0 / 467.8 MB, free: 9.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3436, allocations: 0 / 467.8 MB, free: 9.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3436, allocations: 0 / 467.8 MB, free: 9.09 MB / 382.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.003105/0.3467, allocations: 1.022 MB / 468.8 MB, free: 8.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.3467, allocations: 8.031 kB / 468.8 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.438e-05/0.3468, allocations: 58.73 kB / 468.9 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.3482, allocations: 180.6 kB / 469.1 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3485, allocations: 256 kB / 469.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.3486, allocations: 20.75 kB / 469.3 MB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.439e-05/0.3486, allocations: 31.94 kB / 469.4 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.3516, allocations: 0.8973 MB / 470.3 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.3516, allocations: 4 kB / 470.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.3517, allocations: 4 kB / 470.3 MB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.3517, allocations: 8 kB / 470.3 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003165/0.3548, allocations: 0.9734 MB / 471.3 MB, free: 5.52 MB / 382.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.001761/0.3566, allocations: 1.347 MB / 472.6 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.3591, allocations: 0.7246 MB / 473.3 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.3594, allocations: 156.8 kB / 473.5 MB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08372/0.4432, allocations: 42.18 MB / 0.5036 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.926e-05/0.4432, allocations: 42.55 kB / 0.5036 GB, free: 3.547 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.4432, allocations: 0 / 0.5036 GB, free: 3.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005287/0.4485, allocations: 1.366 MB / 0.5049 GB, free: 2.176 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.4485, allocations: 51.41 kB / 0.505 GB, free: 2.113 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.4487, allocations: 125.8 kB / 0.5051 GB, free: 1.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.4e-05/0.4488, allocations: 33.7 kB / 0.5052 GB, free: 1.941 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.832e-05/0.4489, allocations: 120.8 kB / 0.5053 GB, free: 1.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.4491, allocations: 118.9 kB / 0.5054 GB, free: 1.703 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.4494, allocations: 173.5 kB / 0.5055 GB, free: 1.527 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4495, allocations: 322.8 kB / 0.5059 GB, free: 1.203 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006824/0.4502, allocations: 339.6 kB / 0.5062 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007422/0.4509, allocations: 411.5 kB / 0.5066 GB, free: 452 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.4524, allocations: 0.7143 MB / 0.5073 GB, free: 15.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.4524, allocations: 0 / 0.5073 GB, free: 15.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001909/0.4543, allocations: 0.8763 MB / 0.5081 GB, free: 14.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.4543, allocations: 7.938 kB / 0.5081 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4543, allocations: 4 kB / 0.5081 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.4543, allocations: 4 kB / 0.5081 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.455, allocations: 175.8 kB / 0.5083 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.455, allocations: 4 kB / 0.5083 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003323/0.4553, allocations: 27.83 kB / 0.5083 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.4555, allocations: 63.92 kB / 0.5084 GB, free: 14.53 MB / 446.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.000256/0.4557, allocations: 141.8 kB / 0.5085 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.4559, allocations: 23.78 kB / 0.5086 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008337/0.4642, allocations: 7.97 MB / 0.5163 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.304e-05/0.4642, allocations: 23.97 kB / 0.5164 GB, free: 6.352 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.4643, allocations: 7.922 kB / 0.5164 GB, free: 6.344 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.447e-06/0.4643, allocations: 4 kB / 0.5164 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.4678, allocations: 3.608 MB / 0.5199 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.4678, allocations: 0 / 0.5199 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006452/0.4684, allocations: 103.8 kB / 0.52 GB, free: 2.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.4684, allocations: 7.938 kB / 0.52 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.294e-05/0.4685, allocations: 15.98 kB / 0.52 GB, free: 2.348 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.4685, allocations: 3.938 kB / 0.52 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.4685, allocations: 0 / 0.52 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.4711, allocations: 1.843 MB / 0.5218 GB, free: 492 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.4712, allocations: 140.5 kB / 0.522 GB, free: 332 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.785e-05/0.4713, allocations: 11.94 kB / 0.522 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.4716, allocations: 15.98 kB / 0.522 GB, free: 304 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.4717, allocations: 27.97 kB / 0.522 GB, free: 276 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.443e-05/0.4717, allocations: 15.98 kB / 0.522 GB, free: 260 kB / 446.1 MB Notification: Performance of sorting global known variables: time 9.353e-05/0.4718, allocations: 95.33 kB / 0.5221 GB, free: 164 kB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4718, allocations: 0 / 0.5221 GB, free: 164 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00273/0.4746, allocations: 1.002 MB / 0.5231 GB, free: 15.16 MB / 462.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.007564/0.4821, allocations: 3.435 MB / 0.5264 GB, free: 11.69 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.4839, allocations: 0.8883 MB / 0.5273 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4839, allocations: 0 / 0.5273 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008291/0.4848, allocations: 0.5166 MB / 0.5278 GB, free: 10.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006727/0.4854, allocations: 80.58 kB / 0.5279 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008853/0.4943, allocations: 4.683 MB / 0.5325 GB, free: 5.398 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.4948, allocations: 0.8575 MB / 0.5333 GB, free: 4.512 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00214/0.497, allocations: 1.784 MB / 0.535 GB, free: 2.723 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.4975, allocations: 227.2 kB / 0.5353 GB, free: 2.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4975, allocations: 0 / 0.5353 GB, free: 2.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2662/0.7637, allocations: 46.06 MB / 0.5802 GB, free: 89.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.94, allocations: 13.62 kB / 0.5803 GB, free: 89.68 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)