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.003672/0.003672, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.0009397/0.0009397, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.228/1.228, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 282.9 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8897/0.8897, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 91.84 kB / 0.6809 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1378, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.2866/0.4244, allocations: 14.42 MB / 0.78 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003779/0.4282, allocations: 3.644 MB / 0.7835 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002649/0.4285, allocations: 24.47 kB / 0.7835 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004468/0.4289, allocations: 199 kB / 0.7837 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0009278/0.4299, allocations: 0.5885 MB / 0.7843 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.4306, allocations: 406.7 kB / 0.7847 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008793/0.4315, allocations: 1.086 MB / 0.7858 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003293/0.4318, allocations: 316.2 kB / 0.7861 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.4325, allocations: 390.2 kB / 0.7864 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002939/0.4328, allocations: 301.8 kB / 0.7867 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.045e-05/0.4329, allocations: 32.5 kB / 0.7868 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004292/0.4333, allocations: 260.5 kB / 0.787 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.304e-05/0.4334, allocations: 94.97 kB / 0.7871 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001868/0.4336, allocations: 215.1 kB / 0.7873 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007219/0.4344, allocations: 0.5895 MB / 0.7879 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4344, allocations: 1.469 kB / 0.7879 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4344, allocations: 0 / 0.7879 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.4344, allocations: 3.938 kB / 0.7879 GB, free: 4.039 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.0009753/0.4354, allocations: 0.7413 MB / 0.7886 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.4354, allocations: 8.562 kB / 0.7886 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.409e-05/0.4355, allocations: 65.59 kB / 0.7887 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.4356, allocations: 51.73 kB / 0.7887 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.4362, allocations: 471 kB / 0.7892 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.4363, allocations: 19.28 kB / 0.7892 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.4363, allocations: 29.88 kB / 0.7892 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.4368, allocations: 307.1 kB / 0.7895 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.4369, allocations: 7.938 kB / 0.7895 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.4369, allocations: 16.2 kB / 0.7895 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.4369, allocations: 6.688 kB / 0.7895 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004368/0.4374, allocations: 192.4 kB / 0.7897 GB, free: 2.766 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.001428/0.4388, allocations: 1.48 MB / 0.7912 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003907/0.4392, allocations: 159 kB / 0.7913 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.4394, allocations: 74.89 kB / 0.7914 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.4395, allocations: 84.7 kB / 0.7915 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.4397, allocations: 127.5 kB / 0.7916 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.4398, allocations: 0 / 0.7916 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0005752/0.4403, allocations: 230.5 kB / 0.7918 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/0.4404, allocations: 63.3 kB / 0.7919 GB, free: 1.152 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.4407, allocations: 344.9 kB / 0.7922 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.4407, allocations: 28.77 kB / 0.7922 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.4408, allocations: 221.5 kB / 0.7924 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.4408, allocations: 55.12 kB / 0.7925 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.4409, allocations: 58.55 kB / 0.7925 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.441, allocations: 340.3 kB / 0.7929 GB, free: 364 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.4412, allocations: 68.56 kB / 0.7929 GB, free: 344 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.4414, allocations: 143.1 kB / 0.7931 GB, free: 228 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.4417, allocations: 244.2 kB / 0.7933 GB, free: 44 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4417, allocations: 3.938 kB / 0.7933 GB, free: 40 kB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005849/0.4423, allocations: 313.9 kB / 0.7936 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.4424, allocations: 35.92 kB / 0.7936 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.4424, allocations: 2.719 kB / 0.7936 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.4424, allocations: 2.844 kB / 0.7937 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.4426, allocations: 59.53 kB / 0.7937 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.4426, allocations: 11.64 kB / 0.7937 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.4429, allocations: 32.22 kB / 0.7937 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.4429, allocations: 13.53 kB / 0.7938 GB, free: 15.81 MB / 0.5762 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.0001428/0.4431, allocations: 159.6 kB / 0.7939 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.131e-05/0.4431, allocations: 29.88 kB / 0.7939 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004426/0.4436, allocations: 201.1 kB / 0.7941 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.4436, allocations: 7.531 kB / 0.7941 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.4436, allocations: 3.938 kB / 0.7941 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004705/0.4441, allocations: 482.8 kB / 0.7946 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003998/0.4445, allocations: 354.6 kB / 0.7949 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.4445, allocations: 1.906 kB / 0.7949 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.4446, allocations: 29.12 kB / 0.795 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4447, allocations: 1.531 kB / 0.795 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.4447, allocations: 12.16 kB / 0.795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4447, allocations: 3.938 kB / 0.795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4447, allocations: 0.5625 kB / 0.795 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006008/0.4453, allocations: 283.6 kB / 0.7953 GB, free: 14.68 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.4454, allocations: 125.5 kB / 0.7954 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.4455, allocations: 4.156 kB / 0.7954 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.4457, allocations: 24.52 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.4458, allocations: 18.56 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.4458, allocations: 8.188 kB / 0.7954 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002457/0.4461, allocations: 244.1 kB / 0.7957 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.8e-07/0.4461, allocations: 2.688 kB / 0.7957 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0004179/0.4465, allocations: 127.2 kB / 0.7958 GB, free: 14.39 MB / 0.5762 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.001027/0.4475, allocations: 0.9085 MB / 0.7967 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004685/0.448, allocations: 227.4 kB / 0.7969 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.448, allocations: 3.938 kB / 0.7969 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001836/0.4482, allocations: 72.56 kB / 0.797 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009396/0.4492, allocations: 212.7 kB / 0.7972 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.453, allocations: 3.07 MB / 0.8002 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.4534, allocations: 0.7883 MB / 0.8009 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002294/0.4536, allocations: 62.03 kB / 0.801 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.4538, allocations: 122.5 kB / 0.8011 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of SimCode: time 2.7e-07/0.4538, allocations: 4 kB / 0.8011 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.4823, allocations: 10.22 MB / 0.8111 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.719, allocations: 14.03 kB / 0.8111 GB, free: 8.781 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_ExpansionVessel.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)