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: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) [: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 7.0.3-maint.7.0.x/package.mo): time 1.248/1.248, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009685/0.0009685, allocations: 189.2 kB / 316 MB, free: 3.531 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.18/1.18, allocations: 205.1 MB / 0.5667 GB, free: 15.64 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.0008465/0.0008464, allocations: 94.33 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3464/0.3472, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.5182, allocations: 106.3 MB / 0.8847 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5011/1.019, allocations: 158.2 MB / 1.039 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/1.02, allocations: 93.08 kB / 1.039 GB, free: 14.66 MB / 0.6667 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: 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.04843/1.068, allocations: 21.3 MB / 1.06 GB, free: 13.2 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/1.068, allocations: 12 kB / 1.06 GB, free: 13.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006342/1.069, allocations: 123 kB / 1.06 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005334/1.069, allocations: 410.1 kB / 1.061 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.407e-05/1.069, allocations: 28 kB / 1.061 GB, free: 12.65 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.07e-05/1.069, allocations: 51.89 kB / 1.061 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008056/1.07, allocations: 0.4922 MB / 1.061 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/1.071, allocations: 0.7589 MB / 1.062 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/1.071, allocations: 3.938 kB / 1.062 GB, free: 11.64 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.187e-05/1.071, allocations: 4 kB / 1.062 GB, free: 11.63 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/1.071, allocations: 41.8 kB / 1.062 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/1.075, allocations: 3.544 MB / 1.065 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/1.075, allocations: 274.1 kB / 1.066 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/1.075, allocations: 184.3 kB / 1.066 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/1.075, allocations: 8.375 kB / 1.066 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/1.076, allocations: 192.9 kB / 1.066 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 2.044e-06/1.076, allocations: 0 / 1.066 GB, free: 7.801 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.000456/1.076, allocations: 278.2 kB / 1.066 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/1.076, allocations: 59.39 kB / 1.066 GB, free: 7.508 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002749/1.077, allocations: 310.2 kB / 1.067 GB, free: 7.266 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.427e-05/1.077, allocations: 39.77 kB / 1.067 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000184/1.077, allocations: 329.8 kB / 1.067 GB, free: 6.93 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.959e-05/1.077, allocations: 120.1 kB / 1.067 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.016e-05/1.077, allocations: 0 / 1.067 GB, free: 6.828 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001324/1.077, allocations: 356 kB / 1.067 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/1.077, allocations: 133.9 kB / 1.068 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003473/1.078, allocations: 373 kB / 1.068 GB, free: 6.016 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/1.078, allocations: 171.2 kB / 1.068 GB, free: 5.895 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/1.078, allocations: 0 / 1.068 GB, free: 5.895 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007173/1.079, allocations: 0.5007 MB / 1.069 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009759/1.08, allocations: 2.701 MB / 1.071 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/1.08, allocations: 8 kB / 1.071 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/1.08, allocations: 12 kB / 1.071 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/1.08, allocations: 102 kB / 1.071 GB, free: 2.504 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/1.08, allocations: 11.98 kB / 1.071 GB, free: 2.492 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003067/1.08, allocations: 39.59 kB / 1.071 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.723e-05/1.08, allocations: 39.11 kB / 1.071 GB, free: 2.422 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.302e-06/1.08, allocations: 8 kB / 1.071 GB, free: 2.414 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000616/1.081, allocations: 430.8 kB / 1.072 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/1.081, allocations: 7.906 kB / 1.072 GB, free: 2.074 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/1.081, allocations: 12 kB / 1.072 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/1.081, allocations: 98.77 kB / 1.072 GB, free: 1.969 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/1.081, allocations: 23.92 kB / 1.072 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/1.082, allocations: 40.14 kB / 1.072 GB, free: 1.906 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/1.082, allocations: 30.94 kB / 1.072 GB, free: 1.883 MB / 0.6823 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.0001366/1.082, allocations: 148 kB / 1.072 GB, free: 1.738 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.207e-05/1.082, allocations: 39.53 kB / 1.072 GB, free: 1.699 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/1.082, allocations: 334.5 kB / 1.072 GB, free: 1.453 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/1.082, allocations: 8 kB / 1.072 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/1.082, allocations: 4 kB / 1.072 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/1.083, allocations: 4 kB / 1.072 GB, free: 1.438 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/1.084, allocations: 0.9548 MB / 1.073 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/1.084, allocations: 0 / 1.073 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/1.084, allocations: 55.34 kB / 1.073 GB, free: 0.5625 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.084, allocations: 3.906 kB / 1.073 GB, free: 0.5586 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/1.084, allocations: 7.688 kB / 1.073 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/1.084, allocations: 4 kB / 1.073 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.084, allocations: 3.938 kB / 1.074 GB, free: 0.5469 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007514/1.085, allocations: 0.5893 MB / 1.074 GB, free: 64 kB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00101/1.086, allocations: 1.119 MB / 1.075 GB, free: 15.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/1.086, allocations: 149.2 kB / 1.075 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/1.086, allocations: 7.984 kB / 1.075 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/1.086, allocations: 4 kB / 1.075 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.722e-05/1.086, allocations: 46.05 kB / 1.075 GB, free: 14.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/1.086, allocations: 15.38 kB / 1.075 GB, free: 14.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0001664/1.087, allocations: 193 kB / 1.076 GB, free: 14.75 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001892/1.089, allocations: 221.8 kB / 1.076 GB, free: 14.54 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) * 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.0001887/1.089, allocations: 129.2 kB / 1.076 GB, free: 14.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008751/1.09, allocations: 0.6632 MB / 1.077 GB, free: 13.92 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.09, allocations: 384 / 1.077 GB, free: 13.92 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002211/1.09, allocations: 170 kB / 1.077 GB, free: 13.79 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/1.09, allocations: 75.53 kB / 1.077 GB, free: 13.74 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/1.092, allocations: 0.7117 MB / 1.077 GB, free: 13.08 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006055/1.092, allocations: 0.9681 MB / 1.078 GB, free: 12.09 MB / 0.698 GB Notification: Performance of SimCode: time 2.61e-07/1.092, allocations: 0 / 1.078 GB, free: 12.09 MB / 0.698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)