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.001604/0.001604, allocations: 108.6 kB / 15.73 MB, free: 72 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.001825/0.001825, allocations: 183 kB / 16.66 MB, free: 6.602 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.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8989/0.8989, allocations: 135.1 MB / 425.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.91 kB / 0.5851 GB, free: 3.875 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3673, allocations: 80.92 MB / 0.6641 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.01243/0.3798, allocations: 14.44 MB / 0.6782 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004852/0.3846, allocations: 3.644 MB / 0.6818 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.3851, allocations: 20.59 kB / 0.6818 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0005683/0.3857, allocations: 207.8 kB / 0.682 GB, free: 8.516 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.3869, allocations: 0.6076 MB / 0.6826 GB, free: 8.035 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008234/0.3878, allocations: 396.9 kB / 0.683 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001152/0.3889, allocations: 1.095 MB / 0.684 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.3893, allocations: 311.6 kB / 0.6843 GB, free: 6.891 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.3904, allocations: 399 kB / 0.6847 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004652/0.3909, allocations: 310.5 kB / 0.685 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.724e-05/0.391, allocations: 32.88 kB / 0.6851 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006528/0.3917, allocations: 260.8 kB / 0.6853 GB, free: 6.348 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.3918, allocations: 99.38 kB / 0.6854 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.392, allocations: 214.2 kB / 0.6856 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008077/0.3929, allocations: 0.6025 MB / 0.6862 GB, free: 5.734 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3929, allocations: 1.281 kB / 0.6862 GB, free: 5.734 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3929, allocations: 0 / 0.6862 GB, free: 5.734 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.3929, allocations: 0 / 0.6862 GB, free: 5.734 MB / 0.5137 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.001093/0.394, allocations: 0.765 MB / 0.6869 GB, free: 5.055 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.394, allocations: 10.34 kB / 0.6869 GB, free: 5.055 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.773e-05/0.3941, allocations: 67.58 kB / 0.687 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.3943, allocations: 53.52 kB / 0.6871 GB, free: 4.961 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007067/0.395, allocations: 464.6 kB / 0.6875 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.395, allocations: 19.47 kB / 0.6875 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.3951, allocations: 25.62 kB / 0.6875 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.3957, allocations: 304.7 kB / 0.6878 GB, free: 4.336 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.3957, allocations: 13.42 kB / 0.6879 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.3957, allocations: 11.06 kB / 0.6879 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.3957, allocations: 6.406 kB / 0.6879 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.3962, allocations: 191.2 kB / 0.6881 GB, free: 4.23 MB / 0.5137 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.001717/0.3979, allocations: 1.48 MB / 0.6895 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004462/0.3984, allocations: 162.6 kB / 0.6897 GB, free: 2.754 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.3986, allocations: 73.86 kB / 0.6897 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001384/0.3987, allocations: 83.58 kB / 0.6898 GB, free: 2.617 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.399, allocations: 136.5 kB / 0.6899 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.399, allocations: 0 / 0.6899 GB, free: 2.516 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006092/0.3997, allocations: 230.9 kB / 0.6902 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.3997, allocations: 60.91 kB / 0.6902 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.4001, allocations: 353 kB / 0.6905 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.4001, allocations: 31.98 kB / 0.6906 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.4003, allocations: 216.7 kB / 0.6908 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.036e-05/0.4004, allocations: 62.64 kB / 0.6908 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.702e-05/0.4005, allocations: 57.45 kB / 0.6909 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4006, allocations: 342.8 kB / 0.6912 GB, free: 1.434 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.4008, allocations: 64.7 kB / 0.6913 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.401, allocations: 149.5 kB / 0.6914 GB, free: 1.273 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.4015, allocations: 246.2 kB / 0.6917 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4015, allocations: 0 / 0.6917 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005773/0.402, allocations: 312.5 kB / 0.692 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4021, allocations: 37.19 kB / 0.692 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.4021, allocations: 2.875 kB / 0.692 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.4021, allocations: 7.281 kB / 0.692 GB, free: 0.8516 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.4024, allocations: 58.31 kB / 0.6921 GB, free: 0.8359 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4024, allocations: 12.19 kB / 0.6921 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.4026, allocations: 32.86 kB / 0.6921 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.4027, allocations: 9.062 kB / 0.6921 GB, free: 0.8086 MB / 0.5137 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.0001646/0.4028, allocations: 161.9 kB / 0.6923 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.178e-05/0.4029, allocations: 39.42 kB / 0.6923 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004683/0.4034, allocations: 196.3 kB / 0.6925 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.4034, allocations: 1.188 kB / 0.6925 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4034, allocations: 1.188 kB / 0.6925 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004995/0.4039, allocations: 490.9 kB / 0.693 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004543/0.4044, allocations: 358.6 kB / 0.6933 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.4044, allocations: 3.938 kB / 0.6933 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.4045, allocations: 27.45 kB / 0.6933 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.4046, allocations: 1.156 kB / 0.6933 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.4046, allocations: 9.203 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4046, allocations: 1.219 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4046, allocations: 0 / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.4052, allocations: 284.5 kB / 0.6936 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.4054, allocations: 129.5 kB / 0.6937 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.4054, allocations: 10.14 kB / 0.6938 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.4056, allocations: 15.7 kB / 0.6938 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.4057, allocations: 15.05 kB / 0.6938 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.4057, allocations: 9.234 kB / 0.6938 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002588/0.406, allocations: 251.8 kB / 0.694 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.406, allocations: 0 / 0.694 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000451/0.4065, allocations: 130.1 kB / 0.6942 GB, free: 15.16 MB / 0.5294 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.001067/0.4075, allocations: 0.9184 MB / 0.6951 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004784/0.408, allocations: 228.5 kB / 0.6953 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.408, allocations: 4.188 kB / 0.6953 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.4082, allocations: 73.02 kB / 0.6953 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009397/0.4092, allocations: 209.3 kB / 0.6955 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.4135, allocations: 3.072 MB / 0.6985 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.4139, allocations: 0.7881 MB / 0.6993 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002532/0.4141, allocations: 67.44 kB / 0.6994 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.4143, allocations: 118.5 kB / 0.6995 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of SimCode: time 2.715e-06/0.4143, allocations: 0 / 0.6995 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02734/0.4417, allocations: 10.23 MB / 0.7095 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/8.232, allocations: 6.281 kB / 0.7095 GB, free: 2.488 MB / 0.5294 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)