Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="BuildingSystems_BuildingSystems_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.00557/0.00557, allocations: 99.98 kB / 15.73 MB, free: 6.016 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.001266/0.001266, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.201/1.201, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002002/0.002002, allocations: 295.1 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8474/0.8474, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 95.84 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3777/0.3793, allocations: 86.98 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.013/0.3923, allocations: 14.41 MB / 0.78 GB, free: 5.398 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004395/0.3968, allocations: 3.648 MB / 0.7835 GB, free: 1.738 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003148/0.3971, allocations: 19.88 kB / 0.7835 GB, free: 1.719 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0005274/0.3976, allocations: 214.7 kB / 0.7838 GB, free: 1.508 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.3988, allocations: 0.6025 MB / 0.7843 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007855/0.3996, allocations: 403.5 kB / 0.7847 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001077/0.4007, allocations: 1.099 MB / 0.7858 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003944/0.4011, allocations: 312.3 kB / 0.7861 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.402, allocations: 405 kB / 0.7865 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/0.4023, allocations: 298.7 kB / 0.7868 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.546e-05/0.4024, allocations: 36 kB / 0.7868 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004894/0.4029, allocations: 259.5 kB / 0.787 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.403, allocations: 95.66 kB / 0.7871 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.4032, allocations: 215 kB / 0.7873 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007375/0.4039, allocations: 0.6006 MB / 0.7879 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4039, allocations: 0 / 0.7879 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4039, allocations: 0 / 0.7879 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.404, allocations: 0 / 0.7879 GB, free: 13.22 MB / 0.5606 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.001056/0.405, allocations: 0.7568 MB / 0.7887 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4051, allocations: 16.02 kB / 0.7887 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.806e-05/0.4051, allocations: 62.72 kB / 0.7887 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.4053, allocations: 52.66 kB / 0.7888 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/0.406, allocations: 471.9 kB / 0.7892 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.406, allocations: 20.69 kB / 0.7893 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.4061, allocations: 32 kB / 0.7893 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.4066, allocations: 306.2 kB / 0.7896 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.4066, allocations: 4 kB / 0.7896 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.4067, allocations: 8 kB / 0.7896 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.4067, allocations: 12 kB / 0.7896 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000455/0.4072, allocations: 194.1 kB / 0.7898 GB, free: 11.18 MB / 0.5606 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.001634/0.4088, allocations: 1.482 MB / 0.7912 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004027/0.4092, allocations: 162.6 kB / 0.7914 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.4094, allocations: 60.83 kB / 0.7915 GB, free: 9.344 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.4095, allocations: 89.09 kB / 0.7915 GB, free: 9.238 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.4098, allocations: 119.3 kB / 0.7917 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.4098, allocations: 0 / 0.7917 GB, free: 9.109 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005941/0.4104, allocations: 256.4 kB / 0.7919 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.4105, allocations: 51.41 kB / 0.7919 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.4108, allocations: 353.6 kB / 0.7923 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.4108, allocations: 29.7 kB / 0.7923 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.411, allocations: 224.1 kB / 0.7925 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.055e-05/0.411, allocations: 51.53 kB / 0.7926 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.4111, allocations: 61.66 kB / 0.7926 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4112, allocations: 342.8 kB / 0.793 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.4114, allocations: 67.95 kB / 0.793 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.4117, allocations: 147.1 kB / 0.7932 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.4121, allocations: 245 kB / 0.7934 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4121, allocations: 0 / 0.7934 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000553/0.4126, allocations: 310.9 kB / 0.7937 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.4127, allocations: 33.7 kB / 0.7937 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4127, allocations: 8 kB / 0.7937 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.4127, allocations: 11.88 kB / 0.7937 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002216/0.4129, allocations: 55.95 kB / 0.7938 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.4129, allocations: 8.25 kB / 0.7938 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.4132, allocations: 35.83 kB / 0.7938 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.4132, allocations: 12 kB / 0.7939 GB, free: 6.723 MB / 0.5606 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.0001376/0.4134, allocations: 161.7 kB / 0.794 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.422e-05/0.4134, allocations: 39.75 kB / 0.794 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004524/0.4139, allocations: 188.5 kB / 0.7942 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4139, allocations: 11.92 kB / 0.7942 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4139, allocations: 0 / 0.7942 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006134/0.4145, allocations: 487.6 kB / 0.7947 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004473/0.415, allocations: 357.4 kB / 0.795 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.415, allocations: 0 / 0.795 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.4152, allocations: 31.97 kB / 0.7951 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4152, allocations: 0 / 0.7951 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.4152, allocations: 4 kB / 0.7951 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4152, allocations: 3.938 kB / 0.7951 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4152, allocations: 8 kB / 0.7951 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005735/0.4158, allocations: 279.8 kB / 0.7954 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.4159, allocations: 128.9 kB / 0.7955 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.416, allocations: 7.938 kB / 0.7955 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.4162, allocations: 23.92 kB / 0.7955 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.319e-05/0.4163, allocations: 15.97 kB / 0.7955 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.4163, allocations: 8 kB / 0.7955 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002244/0.4165, allocations: 251.2 kB / 0.7958 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4166, allocations: 0 / 0.7958 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003888/0.4169, allocations: 127.7 kB / 0.7959 GB, free: 4.445 MB / 0.5606 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.0009839/0.4179, allocations: 0.9049 MB / 0.7968 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004527/0.4184, allocations: 231.6 kB / 0.797 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4184, allocations: 4.125 kB / 0.797 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001748/0.4186, allocations: 75.89 kB / 0.7971 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.4195, allocations: 219 kB / 0.7973 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003633/0.4231, allocations: 3.059 MB / 0.8003 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002794/0.4234, allocations: 0.7918 MB / 0.801 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002144/0.4237, allocations: 67.19 kB / 0.8011 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.4238, allocations: 119.4 kB / 0.8012 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.4238, allocations: 0 / 0.8012 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03244/0.4563, allocations: 10.22 MB / 0.8112 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/8.008, allocations: 18.03 kB / 0.8112 GB, free: 4.785 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)