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.007305/0.007305, allocations: 97.58 kB / 15.73 MB, free: 6.055 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.001741/0.001741, allocations: 201.6 kB / 16.68 MB, free: 5.977 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9283/0.9283, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.00137, allocations: 67.89 kB / 0.5851 GB, free: 3.809 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3695, allocations: 80.91 MB / 0.6641 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.0126/0.3821, allocations: 14.45 MB / 0.6782 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004989/0.3872, allocations: 3.636 MB / 0.6818 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004565/0.3876, allocations: 24.97 kB / 0.6818 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.3882, allocations: 202.8 kB / 0.682 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001622/0.3899, allocations: 0.6155 MB / 0.6826 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001006/0.3909, allocations: 391.4 kB / 0.683 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001168/0.3921, allocations: 1.099 MB / 0.6841 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004046/0.3925, allocations: 312.1 kB / 0.6844 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008689/0.3934, allocations: 400.6 kB / 0.6847 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003627/0.3938, allocations: 306.1 kB / 0.685 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.392e-05/0.3938, allocations: 32.66 kB / 0.6851 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005146/0.3943, allocations: 261.1 kB / 0.6853 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.3945, allocations: 91.7 kB / 0.6854 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.3947, allocations: 217.3 kB / 0.6856 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0007694/0.3955, allocations: 0.5992 MB / 0.6862 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3955, allocations: 1.125 kB / 0.6862 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3955, allocations: 0 / 0.6862 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.3955, allocations: 0 / 0.6862 GB, free: 5.723 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.001132/0.3966, allocations: 0.7623 MB / 0.6869 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.3967, allocations: 9.75 kB / 0.687 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.414e-05/0.3967, allocations: 71.61 kB / 0.687 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.3969, allocations: 49.22 kB / 0.6871 GB, free: 4.953 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007033/0.3976, allocations: 464.5 kB / 0.6875 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.3977, allocations: 19.34 kB / 0.6875 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.3977, allocations: 30.17 kB / 0.6876 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005663/0.3983, allocations: 304.9 kB / 0.6878 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.3983, allocations: 9.359 kB / 0.6879 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3984, allocations: 14.77 kB / 0.6879 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.3984, allocations: 11.02 kB / 0.6879 GB, free: 4.301 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004578/0.3989, allocations: 190 kB / 0.6881 GB, free: 4.215 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.001705/0.4006, allocations: 1.477 MB / 0.6895 GB, free: 2.836 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000437/0.401, allocations: 162.4 kB / 0.6897 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.4012, allocations: 69.44 kB / 0.6897 GB, free: 2.703 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.4013, allocations: 83.67 kB / 0.6898 GB, free: 2.609 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000298/0.4016, allocations: 142.2 kB / 0.6899 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 2.886e-06/0.4017, allocations: 0 / 0.6899 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006294/0.4023, allocations: 235.9 kB / 0.6902 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.676e-05/0.4023, allocations: 57.64 kB / 0.6902 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.4027, allocations: 349.8 kB / 0.6906 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.4027, allocations: 32.14 kB / 0.6906 GB, free: 2.051 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.4029, allocations: 216.9 kB / 0.6908 GB, free: 1.855 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.4029, allocations: 66.72 kB / 0.6909 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.029e-05/0.403, allocations: 57.28 kB / 0.6909 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4032, allocations: 342.1 kB / 0.6912 GB, free: 1.418 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.4034, allocations: 65.08 kB / 0.6913 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/0.4036, allocations: 158.9 kB / 0.6914 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004183/0.404, allocations: 236.2 kB / 0.6917 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.404, allocations: 1.125 kB / 0.6917 GB, free: 1.059 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006058/0.4047, allocations: 321.1 kB / 0.692 GB, free: 0.8672 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.4047, allocations: 32.7 kB / 0.692 GB, free: 0.8359 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4047, allocations: 2.594 kB / 0.692 GB, free: 0.8359 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4047, allocations: 4.219 kB / 0.692 GB, free: 0.8359 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.405, allocations: 61.72 kB / 0.6921 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.405, allocations: 4.406 kB / 0.6921 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.4052, allocations: 31.48 kB / 0.6921 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.4053, allocations: 9.625 kB / 0.6921 GB, free: 0.7969 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.0001556/0.4054, allocations: 163.5 kB / 0.6923 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.4055, allocations: 40.11 kB / 0.6923 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004526/0.406, allocations: 199.6 kB / 0.6925 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.406, allocations: 1.406 kB / 0.6925 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.406, allocations: 0.8438 kB / 0.6925 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004695/0.4065, allocations: 484.4 kB / 0.693 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.4069, allocations: 354.3 kB / 0.6933 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.4069, allocations: 3.938 kB / 0.6933 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.4071, allocations: 31.31 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4071, allocations: 1.188 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.4071, allocations: 5.344 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4071, allocations: 1.125 kB / 0.6933 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4071, allocations: 3.938 kB / 0.6934 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005989/0.4077, allocations: 294.4 kB / 0.6936 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.4079, allocations: 130.6 kB / 0.6938 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/0.4079, allocations: 5.125 kB / 0.6938 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.4082, allocations: 16.3 kB / 0.6938 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.4082, allocations: 19.09 kB / 0.6938 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.4083, allocations: 9.719 kB / 0.6938 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002381/0.4085, allocations: 249.3 kB / 0.694 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4085, allocations: 0 / 0.694 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004071/0.4089, allocations: 131.8 kB / 0.6942 GB, free: 15.14 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.001046/0.41, allocations: 0.9164 MB / 0.6951 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004753/0.4105, allocations: 227.8 kB / 0.6953 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4105, allocations: 5.75 kB / 0.6953 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.4107, allocations: 71.17 kB / 0.6954 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009384/0.4116, allocations: 217.7 kB / 0.6956 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.4156, allocations: 3.067 MB / 0.6986 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.4159, allocations: 0.7906 MB / 0.6993 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002256/0.4161, allocations: 67.61 kB / 0.6994 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.4163, allocations: 118.1 kB / 0.6995 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of SimCode: time 2.71e-07/0.4163, allocations: 5.438 kB / 0.6995 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02779/0.4441, allocations: 10.21 MB / 0.7095 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.857/8.301, allocations: 7.875 kB / 0.7095 GB, free: 2.461 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)