Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="IDEAS_dev_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.001163/0.001163, 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.00122/0.00122, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9134/0.9134, allocations: 135.1 MB / 425.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.81 kB / 0.5054 GB, free: 5.203 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1421, allocations: 80.92 MB / 0.5845 GB, free: 4.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.01518/0.1573, allocations: 14.44 MB / 0.5986 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005219/0.1626, allocations: 3.621 MB / 0.6021 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003933/0.163, allocations: 19.88 kB / 0.6021 GB, free: 2.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000576/0.1636, allocations: 206.7 kB / 0.6023 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001248/0.1649, allocations: 0.5829 MB / 0.6029 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000816/0.1657, allocations: 397.8 kB / 0.6033 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001155/0.1669, allocations: 1.083 MB / 0.6043 GB, free: 28 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.238/0.4049, allocations: 318.2 kB / 0.6046 GB, free: 36.79 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.4061, allocations: 384.8 kB / 0.605 GB, free: 36.79 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.4065, allocations: 313.6 kB / 0.6053 GB, free: 36.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.56e-05/0.4065, allocations: 31.72 kB / 0.6053 GB, free: 36.77 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005242/0.4071, allocations: 258.6 kB / 0.6056 GB, free: 36.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.555e-05/0.4072, allocations: 99.92 kB / 0.6057 GB, free: 36.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001578/0.4073, allocations: 213.1 kB / 0.6059 GB, free: 36.7 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005902/0.4079, allocations: 0.5799 MB / 0.6064 GB, free: 36.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.4079, allocations: 0 / 0.6064 GB, free: 36.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.4079, allocations: 1.031 kB / 0.6064 GB, free: 36.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.4079, allocations: 3.219 kB / 0.6064 GB, free: 36.64 MB / 0.4981 GB 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.000968/0.4089, allocations: 0.7522 MB / 0.6072 GB, free: 36.12 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.409, allocations: 9.688 kB / 0.6072 GB, free: 36.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.58e-05/0.409, allocations: 65.8 kB / 0.6072 GB, free: 36.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.4092, allocations: 48 kB / 0.6073 GB, free: 36.06 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.4097, allocations: 445.8 kB / 0.6077 GB, free: 35.82 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.4098, allocations: 23.12 kB / 0.6077 GB, free: 35.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.4098, allocations: 24.66 kB / 0.6078 GB, free: 35.82 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.4103, allocations: 314.6 kB / 0.6081 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.4103, allocations: 3.531 kB / 0.6081 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.4104, allocations: 12.88 kB / 0.6081 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.4104, allocations: 6.844 kB / 0.6081 GB, free: 35.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.4108, allocations: 195.6 kB / 0.6083 GB, free: 35.74 MB / 0.4981 GB 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.001438/0.4123, allocations: 1.491 MB / 0.6097 GB, free: 34.78 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000563/0.4129, allocations: 164.5 kB / 0.6099 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.4131, allocations: 68.25 kB / 0.6099 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.4132, allocations: 90.58 kB / 0.61 GB, free: 34.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.4136, allocations: 125.5 kB / 0.6102 GB, free: 34.6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 2.425e-06/0.4136, allocations: 0 / 0.6102 GB, free: 34.6 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007/0.4143, allocations: 243.2 kB / 0.6104 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.61e-05/0.4144, allocations: 53.5 kB / 0.6104 GB, free: 34.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002806/0.4147, allocations: 355.3 kB / 0.6108 GB, free: 34.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.4147, allocations: 31.67 kB / 0.6108 GB, free: 34.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.896e-05/0.4148, allocations: 223.2 kB / 0.611 GB, free: 34.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.4148, allocations: 47.03 kB / 0.6111 GB, free: 34.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.944e-05/0.4149, allocations: 57.75 kB / 0.6111 GB, free: 34.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.943e-05/0.415, allocations: 340.8 kB / 0.6114 GB, free: 33.85 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001788/0.4152, allocations: 69.64 kB / 0.6115 GB, free: 33.85 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.4154, allocations: 144 kB / 0.6116 GB, free: 33.76 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.4157, allocations: 248.8 kB / 0.6119 GB, free: 33.63 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4157, allocations: 0 / 0.6119 GB, free: 33.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005072/0.4162, allocations: 310.2 kB / 0.6122 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.4163, allocations: 35.28 kB / 0.6122 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.4163, allocations: 6.906 kB / 0.6122 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.851e-05/0.4163, allocations: 6.812 kB / 0.6122 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.4165, allocations: 54.34 kB / 0.6123 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4165, allocations: 5.766 kB / 0.6123 GB, free: 33.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.4168, allocations: 35.8 kB / 0.6123 GB, free: 33.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.4168, allocations: 14.81 kB / 0.6123 GB, free: 33.5 MB / 0.4981 GB 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.0001133/0.417, allocations: 155.5 kB / 0.6125 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.417, allocations: 37.12 kB / 0.6125 GB, free: 33.37 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/0.4174, allocations: 196.2 kB / 0.6127 GB, free: 33.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4174, allocations: 0 / 0.6127 GB, free: 33.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4174, allocations: 0 / 0.6127 GB, free: 33.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004523/0.4179, allocations: 488.4 kB / 0.6132 GB, free: 32.88 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003249/0.4182, allocations: 356.8 kB / 0.6135 GB, free: 32.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4183, allocations: 4 kB / 0.6135 GB, free: 32.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.4184, allocations: 31.47 kB / 0.6135 GB, free: 32.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4184, allocations: 3.219 kB / 0.6135 GB, free: 32.69 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.4185, allocations: 3.938 kB / 0.6136 GB, free: 32.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4185, allocations: 0 / 0.6136 GB, free: 32.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4185, allocations: 4.625 kB / 0.6136 GB, free: 32.68 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005408/0.419, allocations: 293.4 kB / 0.6138 GB, free: 32.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-05/0.4191, allocations: 122 kB / 0.614 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.4192, allocations: 7.875 kB / 0.614 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.4194, allocations: 18.25 kB / 0.614 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.272e-05/0.4195, allocations: 19 kB / 0.614 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.4195, allocations: 2.812 kB / 0.614 GB, free: 32.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001897/0.4197, allocations: 252.7 kB / 0.6142 GB, free: 32.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4197, allocations: 0 / 0.6142 GB, free: 32.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000399/0.4201, allocations: 120 kB / 0.6144 GB, free: 32.38 MB / 0.4981 GB 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.0008715/0.421, allocations: 0.9122 MB / 0.6152 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004885/0.4215, allocations: 244.8 kB / 0.6155 GB, free: 31.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4215, allocations: 0 / 0.6155 GB, free: 31.68 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.4217, allocations: 76.56 kB / 0.6155 GB, free: 31.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009809/0.4227, allocations: 209.9 kB / 0.6157 GB, free: 31.66 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.4261, allocations: 3.069 MB / 0.6187 GB, free: 30.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.4263, allocations: 0.7968 MB / 0.6195 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002592/0.4266, allocations: 70.64 kB / 0.6196 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.4267, allocations: 111.2 kB / 0.6197 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.4267, allocations: 6.719 kB / 0.6197 GB, free: 29.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.4537, allocations: 10.14 MB / 0.6296 GB, free: 28.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/8.02, allocations: 7.938 kB / 0.6296 GB, free: 28.32 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Storage_Examples_ExpansionVessel.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)