Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.447/1.447, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.876/2.876, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 64.03 kB / 0.912 GB, free: 33.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3449, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003275/0.3483, allocations: 1.58 MB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3494, allocations: 0.5922 MB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.018e-05/0.3495, allocations: 0 / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.45e-05/0.3496, allocations: 3.938 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.286e-05/0.3497, allocations: 11.94 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.35, allocations: 63.8 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.3502, allocations: 43.86 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.3503, allocations: 15.98 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.997e-05/0.3504, allocations: 15.94 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.076e-05/0.3505, allocations: 31.83 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.3505, allocations: 8 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.3507, allocations: 47.95 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.3507, allocations: 23.92 kB / 1.071 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.556e-05/0.3508, allocations: 27.73 kB / 1.071 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.351, allocations: 95.97 kB / 1.071 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.351, allocations: 4 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.413e-06/0.351, allocations: 0 / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.351, allocations: 0 / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005536/0.3516, allocations: 395 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.3516, allocations: 12.03 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009317/0.3526, allocations: 204.5 kB / 1.071 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.3527, allocations: 193.3 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.636e-05/0.3528, allocations: 34.25 kB / 1.071 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.3529, allocations: 11.94 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.3533, allocations: 165.5 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.3533, allocations: 0 / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.3533, allocations: 4 kB / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.3533, allocations: 0 / 1.072 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005708/0.3539, allocations: 239.7 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008322/0.3547, allocations: 0.5114 MB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005738/0.3553, allocations: 246.3 kB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.3556, allocations: 120.8 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.3557, allocations: 0 / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.3557, allocations: 30.56 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3557, allocations: 0 / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0009632/0.3567, allocations: 373.2 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.3567, allocations: 59.41 kB / 1.073 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.3569, allocations: 164.2 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.3569, allocations: 25.7 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.357, allocations: 104.1 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.318e-05/0.357, allocations: 7.906 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.435e-05/0.357, allocations: 21.69 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.646e-05/0.3572, allocations: 322.8 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.3575, allocations: 111.9 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.3577, allocations: 119.9 kB / 1.074 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005314/0.3583, allocations: 200.7 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3583, allocations: 4 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000631/0.3589, allocations: 253.4 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.359, allocations: 4 kB / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.359, allocations: 0 / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.359, allocations: 0 / 1.074 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.3592, allocations: 47.94 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.3592, allocations: 11.88 kB / 1.075 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001594/0.3594, allocations: 31.94 kB / 1.075 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.3594, allocations: 3.984 kB / 1.075 GB, free: 3.648 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 8.47e-05/0.3595, allocations: 126.8 kB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.975e-05/0.3595, allocations: 7.906 kB / 1.075 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.323e-05/0.3596, allocations: 19.86 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3596, allocations: 0 / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3596, allocations: 3.938 kB / 1.075 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.3596, allocations: 0 / 1.075 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002465/0.3599, allocations: 241.6 kB / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3599, allocations: 0 / 1.075 GB, free: 3.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001913/0.3601, allocations: 43.92 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3601, allocations: 0 / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.3601, allocations: 11.97 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3601, allocations: 0 / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3601, allocations: 3.938 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006642/0.3608, allocations: 355.2 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.176e-05/0.3608, allocations: 88.89 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.3609, allocations: 0 / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.3611, allocations: 43.95 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.701e-05/0.3611, allocations: 3.938 kB / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3611, allocations: 0 / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.524e-05/0.3612, allocations: 129 kB / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.91e-07/0.3612, allocations: 0 / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002533/0.3615, allocations: 20 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001358/0.3616, allocations: 103.8 kB / 1.076 GB, free: 2.363 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006264/0.3623, allocations: 227.8 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3623, allocations: 4 kB / 1.076 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003077/0.3626, allocations: 123.9 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.3628, allocations: 3.938 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006157/0.3635, allocations: 298.9 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.3637, allocations: 0.6924 MB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.981e-05/0.3638, allocations: 27.98 kB / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.484e-05/0.3639, allocations: 19.42 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3639, allocations: 0 / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of Templates: time 0.003786/0.3677, allocations: 1.293 MB / 1.078 GB, free: 15.63 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)