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.001718/0.001718, allocations: 112.5 kB / 15.73 MB, free: 68 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.002061/0.002061, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9364/0.9364, allocations: 135.5 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 63.91 kB / 0.5857 GB, free: 3.207 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3633, allocations: 81.02 MB / 0.6648 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.ExpansionVessel): time 0.01354/0.3769, allocations: 14.43 MB / 0.6789 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.005555/0.3825, allocations: 3.637 MB / 0.6825 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000518/0.3831, allocations: 20.31 kB / 0.6825 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000637/0.3837, allocations: 203.7 kB / 0.6827 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001474/0.3852, allocations: 0.5836 MB / 0.6833 GB, free: 7.852 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009547/0.3862, allocations: 395.9 kB / 0.6836 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001368/0.3876, allocations: 1.093 MB / 0.6847 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.3881, allocations: 311.8 kB / 0.685 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.3891, allocations: 397.7 kB / 0.6854 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004418/0.3895, allocations: 306.5 kB / 0.6857 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.769e-05/0.3896, allocations: 32.03 kB / 0.6857 GB, free: 6.297 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006168/0.3902, allocations: 258.1 kB / 0.686 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.3904, allocations: 102.6 kB / 0.6861 GB, free: 6.086 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002549/0.3906, allocations: 218.4 kB / 0.6863 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0009217/0.3915, allocations: 0.5946 MB / 0.6868 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3916, allocations: 1.312 kB / 0.6868 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3916, allocations: 0 / 0.6868 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.124e-06/0.3916, allocations: 0 / 0.6868 GB, free: 5.555 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.001196/0.3928, allocations: 0.7617 MB / 0.6876 GB, free: 4.879 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3928, allocations: 17.73 kB / 0.6876 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.786e-05/0.3929, allocations: 59.42 kB / 0.6877 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.3931, allocations: 54 kB / 0.6877 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007368/0.3939, allocations: 468.7 kB / 0.6882 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.3939, allocations: 19.97 kB / 0.6882 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.06e-05/0.3939, allocations: 24.53 kB / 0.6882 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005925/0.3945, allocations: 313.5 kB / 0.6885 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3946, allocations: 9.172 kB / 0.6885 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.3946, allocations: 10.22 kB / 0.6885 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.3946, allocations: 7.75 kB / 0.6885 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004804/0.3951, allocations: 190.4 kB / 0.6887 GB, free: 4.047 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.001869/0.397, allocations: 1.483 MB / 0.6902 GB, free: 2.66 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004381/0.3975, allocations: 162.8 kB / 0.6903 GB, free: 2.566 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3976, allocations: 65.39 kB / 0.6904 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.3978, allocations: 87.66 kB / 0.6905 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003012/0.3981, allocations: 137.6 kB / 0.6906 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.933e-06/0.3981, allocations: 0 / 0.6906 GB, free: 2.332 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006666/0.3988, allocations: 232.8 kB / 0.6908 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.3988, allocations: 58.16 kB / 0.6909 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.3992, allocations: 353.6 kB / 0.6912 GB, free: 1.914 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3993, allocations: 32.11 kB / 0.6912 GB, free: 1.879 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.3995, allocations: 220.7 kB / 0.6915 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.703e-05/0.3995, allocations: 58.27 kB / 0.6915 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.268e-05/0.3996, allocations: 53.84 kB / 0.6916 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3998, allocations: 346.7 kB / 0.6919 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.4, allocations: 68.08 kB / 0.692 GB, free: 1.219 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.4003, allocations: 152.9 kB / 0.6921 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/0.4007, allocations: 242.2 kB / 0.6923 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4007, allocations: 1.062 kB / 0.6923 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006244/0.4014, allocations: 316 kB / 0.6926 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.4014, allocations: 33.02 kB / 0.6927 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4014, allocations: 2.844 kB / 0.6927 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4015, allocations: 3.969 kB / 0.6927 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.4017, allocations: 66.39 kB / 0.6927 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4017, allocations: 4.094 kB / 0.6927 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.402, allocations: 32.17 kB / 0.6928 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.402, allocations: 9.188 kB / 0.6928 GB, free: 0.625 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.0001792/0.4022, allocations: 161.6 kB / 0.6929 GB, free: 488 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.4023, allocations: 40.3 kB / 0.693 GB, free: 464 kB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004875/0.4028, allocations: 195.7 kB / 0.6932 GB, free: 344 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.4028, allocations: 5.078 kB / 0.6932 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4028, allocations: 9.094 kB / 0.6932 GB, free: 332 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005646/0.4034, allocations: 483.5 kB / 0.6936 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.4039, allocations: 353.4 kB / 0.694 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4039, allocations: 5.594 kB / 0.694 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.404, allocations: 34.92 kB / 0.694 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4041, allocations: 6.938 kB / 0.694 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.4041, allocations: 0 / 0.694 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.4041, allocations: 0 / 0.694 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4041, allocations: 0.9375 kB / 0.694 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000607/0.4047, allocations: 288 kB / 0.6943 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4049, allocations: 129 kB / 0.6944 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.4049, allocations: 10.41 kB / 0.6944 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.4051, allocations: 16.22 kB / 0.6944 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.099e-05/0.4052, allocations: 14.77 kB / 0.6945 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.4052, allocations: 10.2 kB / 0.6945 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002693/0.4055, allocations: 249.9 kB / 0.6947 GB, free: 15 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4055, allocations: 0 / 0.6947 GB, free: 15 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004441/0.406, allocations: 128.2 kB / 0.6948 GB, free: 14.97 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.001178/0.4072, allocations: 0.9096 MB / 0.6957 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005139/0.4077, allocations: 236.5 kB / 0.6959 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.4077, allocations: 0 / 0.6959 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001859/0.4079, allocations: 68.81 kB / 0.696 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009583/0.4089, allocations: 215.9 kB / 0.6962 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/0.4132, allocations: 3.065 MB / 0.6992 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.4136, allocations: 0.7917 MB / 0.7 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000283/0.4139, allocations: 68.62 kB / 0.7 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.4141, allocations: 117.8 kB / 0.7002 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of SimCode: time 3.717e-06/0.4141, allocations: 4 kB / 0.7002 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.4492, allocations: 10.22 MB / 0.7101 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.494, allocations: 7.594 kB / 0.7101 GB, free: 1.867 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)