Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.287/1.287, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009771/0.0009771, allocations: 181.3 kB / 361.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.98/0.98, allocations: 205.1 MB / 0.6195 GB, free: 10.34 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007665/0.0007665, allocations: 95.73 kB / 0.7326 GB, free: 44.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.86e-06/4.879e-06, allocations: 0 / 0.8511 GB, free: 3.016 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3994, allocations: 115.3 MB / 0.9637 GB, free: 78.07 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.5506, allocations: 163.4 MB / 1.123 GB, free: 8.531 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.5509, allocations: 86.45 kB / 1.123 GB, free: 8.449 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd: time 0.047/0.5979, allocations: 20.49 MB / 1.143 GB, free: 3.941 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.801e-05/0.598, allocations: 27.94 kB / 1.143 GB, free: 3.914 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001043/0.599, allocations: 0.7823 MB / 1.144 GB, free: 3.074 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.599, allocations: 12.03 kB / 1.144 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005952/0.5996, allocations: 127 kB / 1.144 GB, free: 2.938 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.6002, allocations: 417.3 kB / 1.145 GB, free: 2.492 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.6003, allocations: 24 kB / 1.145 GB, free: 2.469 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.121e-05/0.6004, allocations: 49.02 kB / 1.145 GB, free: 2.422 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008063/0.6012, allocations: 0.4921 MB / 1.145 GB, free: 1.93 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.6022, allocations: 0.7562 MB / 1.146 GB, free: 1.109 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.6022, allocations: 0 / 1.146 GB, free: 1.109 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.6023, allocations: 7.984 kB / 1.146 GB, free: 1.102 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.096e-05/0.6024, allocations: 45.92 kB / 1.146 GB, free: 1.059 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.6057, allocations: 3.545 MB / 1.149 GB, free: 13.31 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000457/0.6061, allocations: 268.5 kB / 1.15 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.6065, allocations: 181.6 kB / 1.15 GB, free: 12.85 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.6065, allocations: 8.312 kB / 1.15 GB, free: 12.84 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.6068, allocations: 189.1 kB / 1.15 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 1.633e-06/0.6068, allocations: 8.875 kB / 1.15 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0004766/0.6073, allocations: 280.8 kB / 1.15 GB, free: 12.36 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.6073, allocations: 59.41 kB / 1.15 GB, free: 12.29 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.6076, allocations: 313.5 kB / 1.151 GB, free: 11.97 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.6076, allocations: 37.7 kB / 1.151 GB, free: 11.93 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.6078, allocations: 327.2 kB / 1.151 GB, free: 11.6 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 9.275e-05/0.6079, allocations: 118.5 kB / 1.151 GB, free: 11.48 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/0.608, allocations: 0 / 1.151 GB, free: 11.48 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.6081, allocations: 354.7 kB / 1.152 GB, free: 11.13 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.6083, allocations: 133.5 kB / 1.152 GB, free: 11 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.6087, allocations: 368.9 kB / 1.152 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/0.6089, allocations: 167 kB / 1.152 GB, free: 10.38 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.609, allocations: 4 kB / 1.152 GB, free: 10.38 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007466/0.6097, allocations: 0.5036 MB / 1.153 GB, free: 9.863 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008389/0.6106, allocations: 2.693 MB / 1.155 GB, free: 6.961 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.6106, allocations: 14.12 kB / 1.155 GB, free: 6.949 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.6106, allocations: 12 kB / 1.155 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.6109, allocations: 107.8 kB / 1.155 GB, free: 6.832 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.611, allocations: 12 kB / 1.155 GB, free: 6.82 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.6113, allocations: 43.58 kB / 1.155 GB, free: 6.777 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.237e-05/0.6113, allocations: 29.03 kB / 1.156 GB, free: 6.75 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 5.16e-06/0.6113, allocations: 4 kB / 1.156 GB, free: 6.746 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006273/0.612, allocations: 433.8 kB / 1.156 GB, free: 6.32 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.612, allocations: 8 kB / 1.156 GB, free: 6.312 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.612, allocations: 12 kB / 1.156 GB, free: 6.301 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003096/0.6123, allocations: 108.6 kB / 1.156 GB, free: 6.195 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.6123, allocations: 14.12 kB / 1.156 GB, free: 6.184 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.6126, allocations: 39.67 kB / 1.156 GB, free: 6.145 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.066e-05/0.6127, allocations: 28 kB / 1.156 GB, free: 6.117 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.6128, allocations: 144.6 kB / 1.156 GB, free: 5.969 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.169e-05/0.6129, allocations: 51.45 kB / 1.156 GB, free: 5.918 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005903/0.6135, allocations: 332.6 kB / 1.157 GB, free: 5.594 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6135, allocations: 4 kB / 1.157 GB, free: 5.59 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.6135, allocations: 5.688 kB / 1.157 GB, free: 5.586 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.6135, allocations: 3.984 kB / 1.157 GB, free: 5.582 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.6147, allocations: 0.9633 MB / 1.158 GB, free: 4.555 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.6148, allocations: 0 / 1.158 GB, free: 4.555 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002115/0.615, allocations: 43.91 kB / 1.158 GB, free: 4.512 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.615, allocations: 4 kB / 1.158 GB, free: 4.508 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.615, allocations: 7.984 kB / 1.158 GB, free: 4.5 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.615, allocations: 7.938 kB / 1.158 GB, free: 4.492 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.615, allocations: 0 / 1.158 GB, free: 4.492 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000765/0.6158, allocations: 0.5935 MB / 1.158 GB, free: 3.863 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.616, allocations: 136.6 kB / 1.158 GB, free: 3.711 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.616, allocations: 4 kB / 1.158 GB, free: 3.707 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.6162, allocations: 13.61 kB / 1.158 GB, free: 3.695 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.6163, allocations: 44.36 kB / 1.158 GB, free: 3.652 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.6164, allocations: 16.06 kB / 1.158 GB, free: 3.637 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0001749/0.6166, allocations: 200.5 kB / 1.159 GB, free: 3.438 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0006906/0.6173, allocations: 209.3 kB / 1.159 GB, free: 3.234 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001774/0.6174, allocations: 137.6 kB / 1.159 GB, free: 3.094 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0009263/0.6184, allocations: 0.6571 MB / 1.16 GB, free: 2.438 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.6184, allocations: 0 / 1.16 GB, free: 2.438 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.6186, allocations: 167.9 kB / 1.16 GB, free: 2.273 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.6191, allocations: 79.91 kB / 1.16 GB, free: 2.199 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.6205, allocations: 0.7074 MB / 1.161 GB, free: 1.461 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006664/0.6212, allocations: 0.9742 MB / 1.161 GB, free: 472 kB / 0.7605 GB Notification: Performance of SimCode: time 3.2e-07/0.6212, allocations: 3.938 kB / 1.161 GB, free: 468 kB / 0.7605 GB Notification: Performance of Templates: time 0.01176/0.6329, allocations: 7.172 MB / 1.168 GB, free: 9.426 MB / 0.7761 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)