Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_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_1.6_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.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 152 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.001299/0.001299, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.406/1.406, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.898/2.898, allocations: 472.6 MB / 0.7451 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 68.89 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.3571, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.003018/0.3601, allocations: 1.554 MB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007845/0.3609, allocations: 458.8 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.238e-05/0.361, allocations: 0 / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.232e-05/0.3611, allocations: 3.938 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.298e-05/0.3611, allocations: 7.875 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002144/0.3613, allocations: 35.89 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.3615, allocations: 71.78 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3616, allocations: 11.97 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.3617, allocations: 43.91 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.985e-05/0.3618, allocations: 27.91 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.3618, allocations: 4 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.592e-05/0.3619, allocations: 8 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.053e-05/0.3619, allocations: 19.92 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.568e-05/0.362, allocations: 31.86 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.3621, allocations: 56.11 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3621, allocations: 0 / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3621, allocations: 0 / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3621, allocations: 3.938 kB / 1.07 GB, free: 8.035 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.0006106/0.3628, allocations: 379.2 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3628, allocations: 8.031 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.635e-05/0.3629, allocations: 12.92 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.363, allocations: 176.2 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.363, allocations: 4.375 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.3631, allocations: 4.375 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002081/0.3633, allocations: 89.94 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.3633, allocations: 4 kB / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.3633, allocations: 0 / 1.071 GB, free: 7.281 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3633, allocations: 4 kB / 1.071 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00013/0.3635, allocations: 47.91 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.364, allocations: 320.6 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.3643, allocations: 106.5 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.521e-05/0.3644, allocations: 44.84 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.3645, allocations: 4.031 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.3648, allocations: 111.3 kB / 1.072 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.3648, allocations: 4 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.000423/0.3652, allocations: 169.5 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.3653, allocations: 55.41 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.828e-05/0.3654, allocations: 113.8 kB / 1.072 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/0.3654, allocations: 29.7 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.525e-05/0.3655, allocations: 88.38 kB / 1.072 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.753e-05/0.3655, allocations: 31.75 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-05/0.3656, allocations: 33.7 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3657, allocations: 322.8 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.344e-05/0.3658, allocations: 27.98 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.593e-05/0.3659, allocations: 53.06 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.3661, allocations: 58.14 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3661, allocations: 4 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002209/0.3663, allocations: 121.4 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3664, allocations: 11.98 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3664, allocations: 48 / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3664, allocations: 3.984 kB / 1.073 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.749e-05/0.3665, allocations: 15.94 kB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.3665, allocations: 0 / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.276e-05/0.3666, allocations: 19.86 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.3666, allocations: 4 kB / 1.073 GB, free: 5.371 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 9.507e-05/0.3667, allocations: 124.2 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.3667, allocations: 11.89 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.3668, allocations: 12.38 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3668, allocations: 4 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.3668, allocations: 0 / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3668, allocations: 0 / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.367, allocations: 189.6 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.367, allocations: 0 / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.93e-05/0.367, allocations: 19.92 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3671, allocations: 4 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3671, allocations: 4 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3671, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3671, allocations: 3.984 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003612/0.3675, allocations: 212.8 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.3675, allocations: 85.05 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.3675, allocations: 7.984 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.79e-05/0.3676, allocations: 8.062 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.3677, allocations: 19.97 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3677, allocations: 4 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.159e-05/0.3677, allocations: 87.27 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3677, allocations: 0 / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002053/0.368, allocations: 20 kB / 1.074 GB, free: 4.477 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.0001293/0.3681, allocations: 103.2 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002492/0.3683, allocations: 107.8 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3684, allocations: 0 / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.3685, allocations: 67.95 kB / 1.074 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.3687, allocations: 11.98 kB / 1.074 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005836/0.3693, allocations: 263 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.3695, allocations: 0.6885 MB / 1.075 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.33e-05/0.3696, allocations: 12.66 kB / 1.075 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.3696, allocations: 11.44 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3697, allocations: 0 / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of Templates: time 0.003733/0.3734, allocations: 1.077 MB / 1.076 GB, free: 2.094 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)