Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_10_Buildings_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.001033/0.001033, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007711/0.007711, allocations: 170.1 kB / 16.26 MB, free: 6.676 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.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.393/2.393, allocations: 437.8 MB / 0.7121 GB, free: 7 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004745/0.0004746, allocations: 12 kB / 0.8729 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5615/0.5619, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01347/0.5755, allocations: 13.89 MB / 1.037 GB, free: 1.891 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004575/0.5801, allocations: 3.621 MB / 1.04 GB, free: 14.26 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002571/0.5803, allocations: 15.88 kB / 1.04 GB, free: 14.24 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004723/0.5808, allocations: 175 kB / 1.04 GB, free: 14.07 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001033/0.5819, allocations: 0.5366 MB / 1.041 GB, free: 13.53 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007207/0.5826, allocations: 355.6 kB / 1.041 GB, free: 13.19 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001383/0.584, allocations: 1.453 MB / 1.043 GB, free: 11.73 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.5844, allocations: 271.3 kB / 1.043 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.5848, allocations: 314.6 kB / 1.043 GB, free: 11.16 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.5851, allocations: 294.6 kB / 1.044 GB, free: 10.87 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.151e-05/0.5852, allocations: 15.98 kB / 1.044 GB, free: 10.85 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004218/0.5856, allocations: 243.4 kB / 1.044 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.641e-05/0.5857, allocations: 71.69 kB / 1.044 GB, free: 10.54 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.5859, allocations: 216.7 kB / 1.044 GB, free: 10.32 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000603/0.5865, allocations: 0.5606 MB / 1.045 GB, free: 9.762 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.5865, allocations: 0 / 1.045 GB, free: 9.762 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5865, allocations: 0 / 1.045 GB, free: 9.762 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.5866, allocations: 0 / 1.045 GB, free: 9.762 MB / 0.795 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.0009971/0.5876, allocations: 0.6796 MB / 1.045 GB, free: 9.027 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.5876, allocations: 8.031 kB / 1.045 GB, free: 9.02 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.855e-05/0.5877, allocations: 58.73 kB / 1.045 GB, free: 8.953 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.5878, allocations: 52.45 kB / 1.045 GB, free: 8.902 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006824/0.5885, allocations: 475.6 kB / 1.046 GB, free: 8.398 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.381e-05/0.5886, allocations: 28.5 kB / 1.046 GB, free: 8.367 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.312e-05/0.5886, allocations: 27.98 kB / 1.046 GB, free: 8.34 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005599/0.5892, allocations: 314.2 kB / 1.046 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.5892, allocations: 0 / 1.046 GB, free: 8.016 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.5893, allocations: 15.98 kB / 1.046 GB, free: 8 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.5893, allocations: 8 kB / 1.046 GB, free: 7.992 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.5898, allocations: 206.1 kB / 1.046 GB, free: 7.793 MB / 0.795 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.5915, allocations: 1.493 MB / 1.048 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.5919, allocations: 166.5 kB / 1.048 GB, free: 6.004 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.5921, allocations: 72.81 kB / 1.048 GB, free: 5.93 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.5923, allocations: 93.11 kB / 1.048 GB, free: 5.82 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.5926, allocations: 131.2 kB / 1.048 GB, free: 5.68 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.5926, allocations: 4 kB / 1.048 GB, free: 5.676 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.0006612/0.5933, allocations: 247.8 kB / 1.049 GB, free: 5.43 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.5933, allocations: 59.39 kB / 1.049 GB, free: 5.359 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.5937, allocations: 333.6 kB / 1.049 GB, free: 5.023 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.5937, allocations: 33.7 kB / 1.049 GB, free: 4.984 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.5939, allocations: 215.8 kB / 1.049 GB, free: 4.766 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.811e-05/0.594, allocations: 59.19 kB / 1.049 GB, free: 4.707 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.594, allocations: 29.7 kB / 1.049 GB, free: 4.672 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.5942, allocations: 346.8 kB / 1.05 GB, free: 4.324 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.5944, allocations: 75.89 kB / 1.05 GB, free: 4.25 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002352/0.5946, allocations: 153.3 kB / 1.05 GB, free: 4.066 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.5951, allocations: 256.6 kB / 1.05 GB, free: 3.777 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.5951, allocations: 4 kB / 1.05 GB, free: 3.773 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006085/0.5957, allocations: 328 kB / 1.05 GB, free: 3.441 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.5957, allocations: 29.7 kB / 1.05 GB, free: 3.406 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.5958, allocations: 7.938 kB / 1.05 GB, free: 3.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.5958, allocations: 4 kB / 1.05 GB, free: 3.395 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002363/0.596, allocations: 64.22 kB / 1.05 GB, free: 3.332 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.596, allocations: 7.984 kB / 1.05 GB, free: 3.324 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.5963, allocations: 35.77 kB / 1.05 GB, free: 3.289 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.5963, allocations: 12 kB / 1.051 GB, free: 3.277 MB / 0.795 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.000157/0.5965, allocations: 158.3 kB / 1.051 GB, free: 3.113 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-05/0.5966, allocations: 35.53 kB / 1.051 GB, free: 3.078 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004731/0.5971, allocations: 216.3 kB / 1.051 GB, free: 2.863 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.5971, allocations: 4 kB / 1.051 GB, free: 2.859 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5971, allocations: 0 / 1.051 GB, free: 2.859 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004957/0.5976, allocations: 491.8 kB / 1.051 GB, free: 2.293 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.598, allocations: 349.4 kB / 1.052 GB, free: 1.902 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.598, allocations: 4 kB / 1.052 GB, free: 1.898 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.5982, allocations: 39.91 kB / 1.052 GB, free: 1.859 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.5982, allocations: 0 / 1.052 GB, free: 1.859 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.5982, allocations: 7.938 kB / 1.052 GB, free: 1.852 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5982, allocations: 4 kB / 1.052 GB, free: 1.848 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5982, allocations: 0 / 1.052 GB, free: 1.848 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006227/0.5989, allocations: 302.3 kB / 1.052 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.599, allocations: 132.6 kB / 1.052 GB, free: 1.387 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.599, allocations: 3.938 kB / 1.052 GB, free: 1.383 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.5993, allocations: 23.97 kB / 1.052 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.5994, allocations: 11.98 kB / 1.052 GB, free: 1.348 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.5994, allocations: 11.98 kB / 1.052 GB, free: 1.336 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002407/0.5997, allocations: 239.2 kB / 1.052 GB, free: 1.102 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.683e-06/0.5997, allocations: 0 / 1.052 GB, free: 1.102 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003983/0.6001, allocations: 124 kB / 1.053 GB, free: 0.9805 MB / 0.795 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.001058/0.6011, allocations: 0.9205 MB / 1.053 GB, free: 32 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004998/0.6016, allocations: 236.4 kB / 1.054 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6017, allocations: 7.938 kB / 1.054 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.6018, allocations: 71.95 kB / 1.054 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.6029, allocations: 206.4 kB / 1.054 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.6071, allocations: 3.24 MB / 1.057 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.6074, allocations: 0.7957 MB / 1.058 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002472/0.6077, allocations: 59.25 kB / 1.058 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.6079, allocations: 123.3 kB / 1.058 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of SimCode: time 3.41e-07/0.6079, allocations: 0 / 1.058 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4486/1.056, allocations: 9.33 MB / 1.067 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/1.057, allocations: 200 kB / 1.067 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.483/3.54, allocations: 64 / 1.067 GB, free: 1.77 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_10_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)