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: translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") translateModel(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001734/0.001734, allocations: 105.8 kB / 16.27 MB, free: 6.414 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.002035/0.002035, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.419/1.419, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002148/0.002148, allocations: 295.1 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9316/0.9316, allocations: 169.3 MB / 0.4988 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 95.23 kB / 0.5959 GB, free: 15.15 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1776, allocations: 86.98 MB / 0.6808 GB, free: 8.184 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Examples.ExpansionVessel): time 0.3209/0.4985, allocations: 14.41 MB / 0.6949 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00543/0.504, allocations: 3.643 MB / 0.6985 GB, free: 8.957 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.5051, allocations: 15.84 kB / 0.6985 GB, free: 8.953 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008802/0.5061, allocations: 201.9 kB / 0.6987 GB, free: 8.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001972/0.5081, allocations: 0.593 MB / 0.6992 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.5094, allocations: 390.3 kB / 0.6996 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.5112, allocations: 1.078 MB / 0.7007 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005423/0.5118, allocations: 322.9 kB / 0.701 GB, free: 7.633 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.5129, allocations: 386.9 kB / 0.7013 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004696/0.5134, allocations: 307.1 kB / 0.7016 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.734e-05/0.5135, allocations: 32.25 kB / 0.7017 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007665/0.5143, allocations: 260.2 kB / 0.7019 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.5144, allocations: 98.38 kB / 0.702 GB, free: 7.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.5146, allocations: 209.1 kB / 0.7022 GB, free: 7.043 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009691/0.5156, allocations: 0.5868 MB / 0.7028 GB, free: 6.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.5156, allocations: 0 / 0.7028 GB, free: 6.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5156, allocations: 0 / 0.7028 GB, free: 6.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.026e-06/0.5156, allocations: 1.094 kB / 0.7028 GB, free: 6.816 MB / 494.1 MB 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.001118/0.5168, allocations: 0.7463 MB / 0.7035 GB, free: 6.211 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.5168, allocations: 9.438 kB / 0.7035 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.517, allocations: 50.83 kB / 0.7036 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.5176, allocations: 449.7 kB / 0.704 GB, free: 5.848 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/0.5177, allocations: 19.81 kB / 0.704 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.5178, allocations: 38.88 kB / 0.7041 GB, free: 5.824 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.5183, allocations: 308.2 kB / 0.7044 GB, free: 5.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.5184, allocations: 0.8438 kB / 0.7044 GB, free: 5.668 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.5184, allocations: 6.938 kB / 0.7044 GB, free: 5.664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.601e-05/0.5184, allocations: 11.77 kB / 0.7044 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.5189, allocations: 200 kB / 0.7046 GB, free: 5.598 MB / 494.1 MB 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.001682/0.5206, allocations: 1.49 MB / 0.706 GB, free: 4.398 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.5211, allocations: 152.4 kB / 0.7062 GB, free: 4.336 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.5213, allocations: 65.11 kB / 0.7062 GB, free: 4.312 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.5214, allocations: 94.44 kB / 0.7063 GB, free: 4.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000305/0.5217, allocations: 126.8 kB / 0.7064 GB, free: 4.141 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.833e-06/0.5217, allocations: 0 / 0.7064 GB, free: 4.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006674/0.5224, allocations: 231.3 kB / 0.7067 GB, free: 4.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.5225, allocations: 58.17 kB / 0.7067 GB, free: 3.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000381/0.5228, allocations: 355.2 kB / 0.707 GB, free: 3.797 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.5229, allocations: 28.23 kB / 0.7071 GB, free: 3.766 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.523, allocations: 216.6 kB / 0.7073 GB, free: 3.586 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/0.5231, allocations: 50.62 kB / 0.7073 GB, free: 3.547 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.5232, allocations: 58.09 kB / 0.7074 GB, free: 3.508 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.434e-05/0.5233, allocations: 340.8 kB / 0.7077 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.5235, allocations: 73.42 kB / 0.7078 GB, free: 3.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.5237, allocations: 148.4 kB / 0.7079 GB, free: 3.043 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.5241, allocations: 248.1 kB / 0.7082 GB, free: 2.859 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5241, allocations: 0.8125 kB / 0.7082 GB, free: 2.859 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006042/0.5247, allocations: 309.4 kB / 0.7085 GB, free: 2.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.5248, allocations: 34.2 kB / 0.7085 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.5248, allocations: 6.625 kB / 0.7085 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.5248, allocations: 4.406 kB / 0.7085 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.5251, allocations: 55.05 kB / 0.7086 GB, free: 2.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.5251, allocations: 8.281 kB / 0.7086 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.5253, allocations: 39.52 kB / 0.7086 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.5254, allocations: 14.33 kB / 0.7086 GB, free: 2.637 MB / 494.1 MB 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.0001363/0.5255, allocations: 157 kB / 0.7088 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.5256, allocations: 35.75 kB / 0.7088 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004692/0.5261, allocations: 198.8 kB / 0.709 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5261, allocations: 2.406 kB / 0.709 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.5261, allocations: 8.531 kB / 0.709 GB, free: 2.379 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004202/0.5265, allocations: 485 kB / 0.7095 GB, free: 1.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000463/0.527, allocations: 351.1 kB / 0.7098 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.527, allocations: 4.75 kB / 0.7098 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.5272, allocations: 32.58 kB / 0.7098 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.5272, allocations: 1.781 kB / 0.7098 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.5272, allocations: 9.5 kB / 0.7098 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5272, allocations: 1 kB / 0.7098 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5272, allocations: 4.547 kB / 0.7098 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006227/0.5279, allocations: 282.1 kB / 0.7101 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.528, allocations: 125.8 kB / 0.7102 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.528, allocations: 3.234 kB / 0.7102 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.5283, allocations: 17.5 kB / 0.7103 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.5284, allocations: 20.39 kB / 0.7103 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.5284, allocations: 7.688 kB / 0.7103 GB, free: 1.367 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.5287, allocations: 249.9 kB / 0.7105 GB, free: 1.234 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5287, allocations: 1.312 kB / 0.7105 GB, free: 1.234 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005018/0.5292, allocations: 128.1 kB / 0.7106 GB, free: 1.203 MB / 494.1 MB 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.0003383/0.5295, allocations: 200 kB / 0.7108 GB, free: 1.074 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.5301, allocations: 235.7 kB / 0.7111 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5301, allocations: 0 / 0.7111 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001975/0.5303, allocations: 70.95 kB / 0.7111 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.5313, allocations: 213.2 kB / 0.7113 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.5327, allocations: 0.7865 MB / 0.7121 GB, free: 372 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003508/0.5331, allocations: 0.784 MB / 0.7129 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.5332, allocations: 42.45 kB / 0.7129 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.5332, allocations: 0 / 0.7129 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of Templates: time 0.01114/0.5443, allocations: 6.14 MB / 0.7189 GB, free: 14.59 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1)