Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.195/2.195, allocations: 391.2 MB / 407 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 199.4 kB / 499.1 MB, free: 4.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 0.7948 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009229/0.0009227, allocations: 107.7 kB / 0.9329 GB, free: 7.074 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 50.53 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2736, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002538/0.2762, allocations: 1.626 MB / 1.22 GB, free: 115.6 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0005637/0.2767, allocations: 443.8 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.297e-05/0.2768, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.613e-05/0.2769, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.2769, allocations: 11.88 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.2771, allocations: 31.95 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 7.458e-05/0.2772, allocations: 59.84 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.2774, allocations: 8 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 9.195e-05/0.2775, allocations: 35.91 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 7.114e-05/0.2775, allocations: 35.84 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.062e-05/0.2776, allocations: 4 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 1.487e-05/0.2776, allocations: 7.938 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.2776, allocations: 7.984 kB / 1.22 GB, free: 115 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 4.988e-05/0.2777, allocations: 35.84 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 9.649e-05/0.2778, allocations: 57.89 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2778, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2778, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.2778, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 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.0004964/0.2783, allocations: 383.2 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2783, allocations: 11.98 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.2784, allocations: 8.844 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.462e-05/0.2785, allocations: 172.3 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.2785, allocations: 8.375 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.2785, allocations: 8.359 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001738/0.2787, allocations: 85.95 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.2787, allocations: 3.938 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.2787, allocations: 0 / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.2787, allocations: 4 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.2789, allocations: 43.97 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004559/0.2793, allocations: 312.7 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002251/0.2796, allocations: 110.6 kB / 1.221 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.685e-05/0.2797, allocations: 48.83 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.2797, allocations: 0 / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.2799, allocations: 111.3 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.2799, allocations: 3.938 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.0003223/0.2802, allocations: 181.5 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.2803, allocations: 51.41 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.635e-05/0.2803, allocations: 109.8 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.2804, allocations: 29.7 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.839e-05/0.2804, allocations: 92.36 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.2804, allocations: 31.7 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.968e-05/0.2805, allocations: 29.7 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.839e-05/0.2805, allocations: 322.8 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.61e-05/0.2806, allocations: 31.97 kB / 1.222 GB, free: 112.5 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.799e-05/0.2807, allocations: 41.7 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001109/0.2808, allocations: 73.58 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2808, allocations: 0 / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001615/0.281, allocations: 113.5 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.281, allocations: 8 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.281, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.281, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.785e-05/0.2811, allocations: 15.92 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2811, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.015e-05/0.2812, allocations: 8 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2812, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 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 7.125e-05/0.2813, allocations: 122.4 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.2813, allocations: 11.91 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.896e-05/0.2813, allocations: 12.38 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2813, allocations: 7.938 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2813, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2813, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.726e-05/0.2814, allocations: 197.5 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2814, allocations: 0 / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.874e-05/0.2815, allocations: 15.94 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2815, allocations: 0 / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2815, allocations: 3.984 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2815, allocations: 4 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2816, allocations: 4 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.2829, allocations: 1.392 MB / 1.224 GB, free: 110.2 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.2829, allocations: 89.02 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.2829, allocations: 4.094 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.531e-05/0.283, allocations: 19.86 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.283, allocations: 8.047 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.2831, allocations: 15.98 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.358e-05/0.2831, allocations: 87.34 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of sort global known variables: time 1e-07/0.2831, allocations: 0 / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002603/0.2834, allocations: 31.98 kB / 1.225 GB, free: 110 MB / 0.823 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 9.188e-05/0.2835, allocations: 103.2 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001873/0.2837, allocations: 91.83 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2837, allocations: 0 / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 9.585e-05/0.2838, allocations: 63.97 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.284, allocations: 23.95 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.2845, allocations: 409.8 kB / 1.225 GB, free: 109.2 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.2846, allocations: 0.6926 MB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 5.357e-05/0.2847, allocations: 12.75 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.2847, allocations: 15.42 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of SimCode: time 2.1e-07/0.2847, allocations: 0 / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of Templates: time 0.002842/0.2876, allocations: 1.046 MB / 1.227 GB, free: 107.5 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)