Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.362/1.362, allocations: 252 MB / 267.9 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 189.5 kB / 327.6 MB, free: 2.156 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.4 MB / 0.5785 GB, free: 20.43 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 99.86 kB / 0.6831 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003869, allocations: 11.5 kB / 0.7974 GB, free: 134.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2447, allocations: 106.3 MB / 0.9012 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.189/0.4338, allocations: 158 MB / 1.056 GB, free: 1.816 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.4341, allocations: 91.94 kB / 1.056 GB, free: 1.727 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 - DAE generated: time 0.4725/0.9067, allocations: 21.22 MB / 1.076 GB, free: 151.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.787e-06/0.9067, allocations: 2.406 kB / 1.076 GB, free: 151.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.389e-05/0.9068, allocations: 21.91 kB / 1.076 GB, free: 151.5 MB / 0.698 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.002634/0.9094, allocations: 0.8033 MB / 1.077 GB, free: 150.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.9095, allocations: 21.34 kB / 1.077 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.9106, allocations: 126.4 kB / 1.077 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008498/0.9115, allocations: 420.3 kB / 1.078 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.344e-05/0.9116, allocations: 61.78 kB / 1.078 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001857/0.9117, allocations: 76.19 kB / 1.078 GB, free: 150.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001689/0.9134, allocations: 0.873 MB / 1.079 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.9135, allocations: 9 kB / 1.079 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.9136, allocations: 35.77 kB / 1.079 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.069e-05/0.9137, allocations: 40.8 kB / 1.079 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.915, allocations: 0.565 MB / 1.079 GB, free: 150 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.9196, allocations: 3.703 MB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006722/0.9203, allocations: 302.8 kB / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004448/0.9208, allocations: 204.5 kB / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.655e-05/0.9208, allocations: 9.906 kB / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004457/0.9213, allocations: 217.3 kB / 1.084 GB, free: 147 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 5.069e-06/0.9213, allocations: 0 / 1.084 GB, free: 147 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001038/0.9224, allocations: 439.5 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.9224, allocations: 61.22 kB / 1.084 GB, free: 146.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006556/0.9231, allocations: 430.1 kB / 1.084 GB, free: 146.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.9232, allocations: 46.17 kB / 1.085 GB, free: 146.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.9235, allocations: 342.8 kB / 1.085 GB, free: 146.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.9237, allocations: 125.2 kB / 1.085 GB, free: 146 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.9237, allocations: 15.34 kB / 1.085 GB, free: 146 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.9238, allocations: 362.6 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003996/0.9242, allocations: 156.3 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.9248, allocations: 397.1 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008287/0.9256, allocations: 0.4951 MB / 1.086 GB, free: 144.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.9257, allocations: 2.906 kB / 1.086 GB, free: 144.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001557/0.9272, allocations: 0.5947 MB / 1.087 GB, free: 144.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.9275, allocations: 296.9 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.574e-05/0.9275, allocations: 7.406 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.328e-05/0.9276, allocations: 14.7 kB / 1.087 GB, free: 144.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/0.928, allocations: 103.1 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.918e-05/0.9281, allocations: 18.39 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.9285, allocations: 61.41 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.999e-05/0.9286, allocations: 38.05 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.517e-06/0.9286, allocations: 4.062 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/0.9297, allocations: 0.5249 MB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.9297, allocations: 6.406 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.9297, allocations: 14.94 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.93, allocations: 103.3 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.93, allocations: 11.28 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/0.9304, allocations: 57.86 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.446e-05/0.9304, allocations: 33.75 kB / 1.088 GB, free: 143.7 MB / 0.698 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 () * Number of clocked 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.0004243/0.9309, allocations: 318.1 kB / 1.088 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.931, allocations: 56.84 kB / 1.089 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006762/0.9317, allocations: 383.7 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.9317, allocations: 7.75 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.9317, allocations: 4 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.575e-06/0.9317, allocations: 3.984 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.9331, allocations: 1.093 MB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.9331, allocations: 7.953 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.9333, allocations: 43 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.9333, allocations: 3.969 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.9333, allocations: 11.94 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.9333, allocations: 3.875 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.9333, allocations: 3.938 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006929/0.934, allocations: 0.6268 MB / 1.091 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.9342, allocations: 153 kB / 1.091 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.9343, allocations: 15.7 kB / 1.091 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.9344, allocations: 11.25 kB / 1.091 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.9345, allocations: 51.3 kB / 1.091 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.9346, allocations: 19.12 kB / 1.091 GB, free: 141.7 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002197/0.9348, allocations: 260.9 kB / 1.091 GB, free: 141.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9348, allocations: 0 / 1.091 GB, free: 141.5 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007832/0.9356, allocations: 238.4 kB / 1.091 GB, free: 141.4 MB / 0.698 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) * Number of clocked states: 0 () * 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.0001914/0.9358, allocations: 143.3 kB / 1.092 GB, free: 141.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009447/0.9367, allocations: 0.7178 MB / 1.092 GB, free: 141 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.9368, allocations: 0 / 1.092 GB, free: 141 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.937, allocations: 177.7 kB / 1.092 GB, free: 141 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005944/0.9376, allocations: 100.4 kB / 1.093 GB, free: 140.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.9392, allocations: 1.186 MB / 1.094 GB, free: 140.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.9396, allocations: 0.9083 MB / 1.095 GB, free: 139.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004171/0.94, allocations: 115.1 kB / 1.095 GB, free: 139.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.9402, allocations: 53.95 kB / 1.095 GB, free: 139.2 MB / 0.698 GB Notification: Performance of SimCode: time 3.71e-07/0.9402, allocations: 0 / 1.095 GB, free: 139.2 MB / 0.698 GB Notification: Performance of Templates: time 0.01044/0.9506, allocations: 5.459 MB / 1.1 GB, free: 133.9 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)