Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) 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(IDEAS.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_Examples_ExpansionVessel",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.001552/0.001552, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00214/0.00214, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.751/0.751, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 64.19 kB / 0.5019 GB, free: 3.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3467, allocations: 80.2 MB / 0.5802 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.01526/0.362, allocations: 14.43 MB / 0.5943 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.3673, allocations: 3.643 MB / 0.5978 GB, free: 7.629 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004059/0.3677, allocations: 20.78 kB / 0.5979 GB, free: 7.621 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005786/0.3683, allocations: 204 kB / 0.598 GB, free: 7.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.3697, allocations: 0.5863 MB / 0.5986 GB, free: 7.152 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000899/0.3706, allocations: 384.8 kB / 0.599 GB, free: 6.945 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00118/0.3718, allocations: 1.085 MB / 0.6 GB, free: 6.391 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004138/0.3722, allocations: 325.8 kB / 0.6004 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008346/0.373, allocations: 396 kB / 0.6007 GB, free: 5.961 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.3734, allocations: 303 kB / 0.601 GB, free: 5.781 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.903e-05/0.3735, allocations: 32.81 kB / 0.6011 GB, free: 5.781 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.3741, allocations: 260.5 kB / 0.6013 GB, free: 5.648 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.3742, allocations: 96.08 kB / 0.6014 GB, free: 5.574 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.3744, allocations: 213.1 kB / 0.6016 GB, free: 5.438 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007212/0.3751, allocations: 0.5836 MB / 0.6022 GB, free: 5.051 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3752, allocations: 0 / 0.6022 GB, free: 5.051 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3752, allocations: 0 / 0.6022 GB, free: 5.051 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.3752, allocations: 4 kB / 0.6022 GB, free: 5.047 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001111/0.3763, allocations: 0.7513 MB / 0.6029 GB, free: 4.383 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3763, allocations: 9.531 kB / 0.6029 GB, free: 4.383 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.3764, allocations: 63.88 kB / 0.603 GB, free: 4.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.3766, allocations: 49.5 kB / 0.603 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006305/0.3772, allocations: 454.1 kB / 0.6035 GB, free: 3.898 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.3773, allocations: 23.28 kB / 0.6035 GB, free: 3.887 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.787e-05/0.3773, allocations: 30.56 kB / 0.6035 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.3779, allocations: 300.7 kB / 0.6038 GB, free: 3.676 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3779, allocations: 9.047 kB / 0.6038 GB, free: 3.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.378, allocations: 6.406 kB / 0.6038 GB, free: 3.664 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.926e-05/0.378, allocations: 15.97 kB / 0.6038 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004639/0.3784, allocations: 193.5 kB / 0.604 GB, free: 3.562 MB / 446.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.001702/0.3802, allocations: 1.493 MB / 0.6055 GB, free: 2.176 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.3806, allocations: 149.4 kB / 0.6056 GB, free: 2.094 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.3808, allocations: 70.56 kB / 0.6057 GB, free: 2.055 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/0.381, allocations: 91.81 kB / 0.6058 GB, free: 1.953 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003001/0.3813, allocations: 128.5 kB / 0.6059 GB, free: 1.855 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.823e-06/0.3813, allocations: 1.062 kB / 0.6059 GB, free: 1.855 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006699/0.382, allocations: 235.6 kB / 0.6061 GB, free: 1.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.382, allocations: 57.88 kB / 0.6062 GB, free: 1.664 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.3824, allocations: 353.8 kB / 0.6065 GB, free: 1.438 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.3824, allocations: 27.83 kB / 0.6065 GB, free: 1.406 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.3826, allocations: 223.9 kB / 0.6067 GB, free: 1.203 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.818e-05/0.3827, allocations: 47.17 kB / 0.6068 GB, free: 1.164 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.3828, allocations: 52.61 kB / 0.6068 GB, free: 1.125 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3829, allocations: 342.5 kB / 0.6072 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002011/0.3831, allocations: 77.11 kB / 0.6072 GB, free: 0.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.3834, allocations: 145 kB / 0.6074 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.3838, allocations: 240.3 kB / 0.6076 GB, free: 436 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3838, allocations: 1.312 kB / 0.6076 GB, free: 436 kB / 446.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006026/0.3844, allocations: 321 kB / 0.6079 GB, free: 240 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.3845, allocations: 32.05 kB / 0.6079 GB, free: 208 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.3845, allocations: 2.719 kB / 0.6079 GB, free: 208 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3845, allocations: 4.344 kB / 0.608 GB, free: 208 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.3847, allocations: 57.25 kB / 0.608 GB, free: 192 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.3848, allocations: 8.453 kB / 0.608 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.385, allocations: 32.22 kB / 0.608 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.3851, allocations: 12.61 kB / 0.6081 GB, free: 164 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * 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.0001528/0.3852, allocations: 163.9 kB / 0.6082 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.3853, allocations: 35.52 kB / 0.6082 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.3858, allocations: 200.8 kB / 0.6084 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3858, allocations: 1.469 kB / 0.6084 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3858, allocations: 0 / 0.6084 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000545/0.3864, allocations: 489.4 kB / 0.6089 GB, free: 15.37 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004346/0.3868, allocations: 354.6 kB / 0.6092 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3868, allocations: 0 / 0.6092 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.387, allocations: 44.25 kB / 0.6093 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.387, allocations: 3.938 kB / 0.6093 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.387, allocations: 2.375 kB / 0.6093 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3871, allocations: 0 / 0.6093 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3871, allocations: 1.156 kB / 0.6093 GB, free: 15.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.3877, allocations: 283.8 kB / 0.6096 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.3878, allocations: 133.7 kB / 0.6097 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.3879, allocations: 5.406 kB / 0.6097 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.3881, allocations: 11.27 kB / 0.6097 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.916e-05/0.3882, allocations: 19.69 kB / 0.6097 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.3882, allocations: 4.938 kB / 0.6097 GB, free: 14.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002537/0.3885, allocations: 259 kB / 0.61 GB, free: 14.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3885, allocations: 0 / 0.61 GB, free: 14.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000443/0.3889, allocations: 123.8 kB / 0.6101 GB, free: 14.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001108/0.39, allocations: 0.9153 MB / 0.611 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005032/0.3906, allocations: 234.7 kB / 0.6112 GB, free: 13.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3906, allocations: 0 / 0.6112 GB, free: 13.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/0.3908, allocations: 74.2 kB / 0.6113 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009874/0.3918, allocations: 215 kB / 0.6115 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.3961, allocations: 3.074 MB / 0.6145 GB, free: 11.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.3964, allocations: 0.7912 MB / 0.6153 GB, free: 10.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.3967, allocations: 60.69 kB / 0.6153 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.3968, allocations: 120.9 kB / 0.6154 GB, free: 10.29 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3969, allocations: 1.25 kB / 0.6154 GB, free: 10.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.4241, allocations: 10.14 MB / 0.6253 GB, free: 2.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.446/7.87, allocations: 11.7 kB / 0.6254 GB, free: 2.641 MB / 462.1 MB (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 IDEAS_IDEAS_Fluid_Storage_Examples_ExpansionVessel.fmu > IDEAS_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)