Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008456/0.0008457, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005734/0.005734, allocations: 174.4 kB / 16.27 MB, free: 6.66 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.471/1.471, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 473.4 MB / 0.7469 GB, free: 6.117 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 12.69 kB / 0.9158 GB, free: 33.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3545, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001891/0.3565, allocations: 1.288 MB / 1.075 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006875/0.3572, allocations: 439 kB / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.3572, allocations: 0 / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.897e-05/0.3573, allocations: 7.938 kB / 1.076 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.583e-05/0.3573, allocations: 7.922 kB / 1.076 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.3575, allocations: 27.97 kB / 1.076 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.3577, allocations: 67.78 kB / 1.076 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.3578, allocations: 7.984 kB / 1.076 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.3579, allocations: 35.84 kB / 1.076 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.2e-05/0.358, allocations: 27.91 kB / 1.076 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.358, allocations: 4 kB / 1.076 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.358, allocations: 4 kB / 1.076 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.998e-05/0.3581, allocations: 15.92 kB / 1.076 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.461e-05/0.3581, allocations: 53.56 kB / 1.076 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.3583, allocations: 56.09 kB / 1.076 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.3583, allocations: 4 kB / 1.076 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3583, allocations: 0 / 1.076 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.3583, allocations: 3.938 kB / 1.076 GB, free: 5.496 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005339/0.3588, allocations: 363.4 kB / 1.076 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3589, allocations: 8.031 kB / 1.076 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.3589, allocations: 8.844 kB / 1.076 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.359, allocations: 168.3 kB / 1.077 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.3591, allocations: 4.375 kB / 1.077 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.931e-05/0.3591, allocations: 16.3 kB / 1.077 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.3593, allocations: 85.95 kB / 1.077 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.3593, allocations: 4 kB / 1.077 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.3594, allocations: 0 / 1.077 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.706e-05/0.3594, allocations: 3.984 kB / 1.077 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.3596, allocations: 51.91 kB / 1.077 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006023/0.3602, allocations: 328.6 kB / 1.077 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.3605, allocations: 102.5 kB / 1.077 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.684e-05/0.3606, allocations: 44.84 kB / 1.077 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.3606, allocations: 4 kB / 1.077 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.3609, allocations: 119.3 kB / 1.077 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.3609, allocations: 0 / 1.077 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0004671/0.3614, allocations: 177.5 kB / 1.078 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.3615, allocations: 55.41 kB / 1.078 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3616, allocations: 113.8 kB / 1.078 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.3616, allocations: 29.7 kB / 1.078 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.066e-05/0.3617, allocations: 92.27 kB / 1.078 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.3618, allocations: 23.86 kB / 1.078 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.898e-05/0.3618, allocations: 21.7 kB / 1.078 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.362, allocations: 322.8 kB / 1.078 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.994e-05/0.3621, allocations: 27.98 kB / 1.078 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.3622, allocations: 65.62 kB / 1.078 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.3624, allocations: 61.7 kB / 1.078 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3624, allocations: 4 kB / 1.078 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002611/0.3627, allocations: 117.4 kB / 1.078 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3627, allocations: 12 kB / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3627, allocations: 0 / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.3627, allocations: 0 / 1.078 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.182e-05/0.3628, allocations: 16 kB / 1.078 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.3629, allocations: 0 / 1.078 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.641e-05/0.363, allocations: 19.77 kB / 1.078 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.363, allocations: 4 kB / 1.079 GB, free: 2.836 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 0.0001481/0.3631, allocations: 129.7 kB / 1.079 GB, free: 2.699 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.3632, allocations: 11.98 kB / 1.079 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.208e-05/0.3632, allocations: 8.375 kB / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3632, allocations: 0 / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.3632, allocations: 0 / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3632, allocations: 0 / 1.079 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.3635, allocations: 201.5 kB / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3635, allocations: 0 / 1.079 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.525e-05/0.3636, allocations: 11.98 kB / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3636, allocations: 0 / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.3636, allocations: 0 / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.3636, allocations: 11.98 kB / 1.079 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.3636, allocations: 4 kB / 1.079 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.3641, allocations: 220.9 kB / 1.079 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.3642, allocations: 85.05 kB / 1.079 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.3642, allocations: 7.984 kB / 1.079 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.03e-05/0.3643, allocations: 8.062 kB / 1.079 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.535e-05/0.3644, allocations: 15.97 kB / 1.079 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.3644, allocations: 4 kB / 1.079 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.672e-05/0.3645, allocations: 91.27 kB / 1.079 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3645, allocations: 0 / 1.079 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002078/0.3647, allocations: 20 kB / 1.079 GB, free: 1.926 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0001932/0.3649, allocations: 107.3 kB / 1.079 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002792/0.3652, allocations: 104.4 kB / 1.079 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3652, allocations: 0 / 1.079 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.3653, allocations: 67.91 kB / 1.08 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.3656, allocations: 19.52 kB / 1.08 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.3663, allocations: 299 kB / 1.08 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.3667, allocations: 0.6887 MB / 1.081 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.401e-05/0.3667, allocations: 4.672 kB / 1.081 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/0.3668, allocations: 19.42 kB / 1.081 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3668, allocations: 8 kB / 1.081 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of Templates: time 0.004767/0.3716, allocations: 0.9215 MB / 1.081 GB, free: 15.64 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)