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.004309/0.004309, allocations: 101 kB / 15.73 MB, free: 6.062 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.001198/0.001198, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.304/1.304, 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.002382/0.002382, allocations: 288.3 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.9334/0.9334, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00256/0.002561, allocations: 91.84 kB / 0.6809 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3759, allocations: 86.98 MB / 0.7659 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.01566/0.3916, allocations: 14.42 MB / 0.78 GB, free: 5.312 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005087/0.3967, allocations: 3.651 MB / 0.7835 GB, free: 1.652 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003432/0.397, allocations: 23.94 kB / 0.7836 GB, free: 1.629 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.3976, allocations: 198.7 kB / 0.7838 GB, free: 1.434 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001231/0.3989, allocations: 0.5868 MB / 0.7843 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008381/0.3997, allocations: 389 kB / 0.7847 GB, free: 476 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001224/0.4009, allocations: 1.091 MB / 0.7858 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004598/0.4014, allocations: 320.3 kB / 0.7861 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009021/0.4023, allocations: 396 kB / 0.7864 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004447/0.4028, allocations: 302.6 kB / 0.7867 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.015e-05/0.4029, allocations: 36 kB / 0.7868 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005026/0.4034, allocations: 255.5 kB / 0.787 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.4035, allocations: 87.73 kB / 0.7871 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.4037, allocations: 222.9 kB / 0.7873 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008193/0.4046, allocations: 0.5889 MB / 0.7879 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.4046, allocations: 4 kB / 0.7879 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.002e-06/0.4046, allocations: 0 / 0.7879 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.4046, allocations: 0 / 0.7879 GB, free: 13.2 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.001164/0.4058, allocations: 0.753 MB / 0.7886 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4058, allocations: 12.03 kB / 0.7886 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.686e-05/0.4059, allocations: 62.67 kB / 0.7887 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.4061, allocations: 56.64 kB / 0.7887 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007472/0.4068, allocations: 471.9 kB / 0.7892 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.4069, allocations: 24.67 kB / 0.7892 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.056e-05/0.4069, allocations: 28 kB / 0.7892 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006042/0.4075, allocations: 310.2 kB / 0.7895 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.4076, allocations: 0 / 0.7895 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.4076, allocations: 16 kB / 0.7896 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.4076, allocations: 4 kB / 0.7896 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.4081, allocations: 198 kB / 0.7898 GB, free: 11.16 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.001816/0.4099, allocations: 1.482 MB / 0.7912 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004308/0.4104, allocations: 164.9 kB / 0.7914 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.4106, allocations: 68.81 kB / 0.7914 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001487/0.4107, allocations: 85.11 kB / 0.7915 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002898/0.411, allocations: 123.3 kB / 0.7916 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 3.367e-06/0.411, allocations: 4 kB / 0.7916 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006483/0.4117, allocations: 245.2 kB / 0.7919 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.509e-05/0.4117, allocations: 51.41 kB / 0.7919 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.4122, allocations: 353.6 kB / 0.7922 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.4122, allocations: 29.7 kB / 0.7923 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.4124, allocations: 220.1 kB / 0.7925 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.4124, allocations: 55.53 kB / 0.7925 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.934e-05/0.4125, allocations: 57.64 kB / 0.7926 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.4127, allocations: 342.8 kB / 0.7929 GB, free: 7.699 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.4129, allocations: 67.95 kB / 0.793 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.4132, allocations: 151.1 kB / 0.7931 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004304/0.4136, allocations: 241.2 kB / 0.7934 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4136, allocations: 0 / 0.7934 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00059/0.4142, allocations: 314.8 kB / 0.7937 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.4143, allocations: 37.69 kB / 0.7937 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.4143, allocations: 4 kB / 0.7937 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.4143, allocations: 7.938 kB / 0.7937 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.4145, allocations: 56.22 kB / 0.7938 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.4145, allocations: 8 kB / 0.7938 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.4148, allocations: 31.83 kB / 0.7938 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/0.4148, allocations: 8 kB / 0.7938 GB, free: 6.703 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.0001687/0.415, allocations: 161.7 kB / 0.794 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.415, allocations: 35.77 kB / 0.794 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004676/0.4155, allocations: 203.4 kB / 0.7942 GB, free: 6.297 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4155, allocations: 3.938 kB / 0.7942 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4155, allocations: 0 / 0.7942 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005248/0.4161, allocations: 487.7 kB / 0.7947 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.4165, allocations: 361.3 kB / 0.795 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4165, allocations: 0 / 0.795 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.4167, allocations: 27.98 kB / 0.795 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4167, allocations: 0 / 0.795 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.4167, allocations: 3.984 kB / 0.795 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.4167, allocations: 11.88 kB / 0.795 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.4168, allocations: 4 kB / 0.795 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005952/0.4174, allocations: 272.8 kB / 0.7953 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.4175, allocations: 128.9 kB / 0.7954 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.612e-05/0.4175, allocations: 11.92 kB / 0.7954 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.4178, allocations: 23.92 kB / 0.7955 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.4178, allocations: 11.98 kB / 0.7955 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.4179, allocations: 15.98 kB / 0.7955 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000268/0.4181, allocations: 247.2 kB / 0.7957 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4181, allocations: 0 / 0.7957 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004093/0.4186, allocations: 127.7 kB / 0.7958 GB, free: 4.422 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.001152/0.4197, allocations: 0.9115 MB / 0.7967 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004987/0.4202, allocations: 243.6 kB / 0.797 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4202, allocations: 0 / 0.797 GB, free: 3.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.4204, allocations: 71.89 kB / 0.797 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008998/0.4213, allocations: 212.8 kB / 0.7972 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004262/0.4256, allocations: 3.057 MB / 0.8002 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.4261, allocations: 0.7918 MB / 0.801 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002478/0.4263, allocations: 67.19 kB / 0.8011 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.4265, allocations: 119.4 kB / 0.8012 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of SimCode: time 6.02e-07/0.4265, allocations: 0 / 0.8012 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.4615, allocations: 10.21 MB / 0.8112 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/8.284, allocations: 22.69 kB / 0.8112 GB, free: 4.758 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)