Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.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: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.78/1.78, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.000941/0.000941, allocations: 191.9 kB / 490.8 MB, free: 1.922 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.116/1.116, allocations: 221.4 MB / 0.7863 GB, free: 13.7 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.0008334/0.0008335, allocations: 98.61 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4139/0.4148, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.5938, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5133/1.107, allocations: 175.8 MB / 1.383 GB, free: 17.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/1.107, allocations: 88.31 kB / 1.383 GB, free: 17.06 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28: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 10.0.0-master/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.05002/1.157, allocations: 24.4 MB / 1.407 GB, free: 20.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/1.157, allocations: 8 kB / 1.407 GB, free: 20.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006973/1.158, allocations: 138.9 kB / 1.407 GB, free: 20.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005948/1.159, allocations: 408.2 kB / 1.408 GB, free: 19.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/1.159, allocations: 35.17 kB / 1.408 GB, free: 19.79 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.932e-05/1.159, allocations: 44 kB / 1.408 GB, free: 19.75 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007873/1.16, allocations: 0.4968 MB / 1.408 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009295/1.161, allocations: 0.7561 MB / 1.409 GB, free: 18.79 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/1.161, allocations: 4 kB / 1.409 GB, free: 18.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.551e-05/1.161, allocations: 7.938 kB / 1.409 GB, free: 18.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.28e-05/1.161, allocations: 45.61 kB / 1.409 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003087/1.164, allocations: 3.553 MB / 1.413 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004277/1.164, allocations: 350.7 kB / 1.413 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/1.165, allocations: 205.2 kB / 1.413 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/1.165, allocations: 14.67 kB / 1.413 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/1.165, allocations: 250 kB / 1.413 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=50): time 2.434e-06/1.165, allocations: 0 / 1.413 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=50): time 0.0004894/1.165, allocations: 315.2 kB / 1.414 GB, free: 14.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/1.166, allocations: 166.2 kB / 1.414 GB, free: 14.31 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/1.166, allocations: 300.9 kB / 1.414 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.542e-05/1.166, allocations: 40.89 kB / 1.414 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/1.166, allocations: 325.4 kB / 1.414 GB, free: 13.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.871e-05/1.166, allocations: 123.5 kB / 1.415 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.22e-05/1.166, allocations: 0 / 1.415 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001176/1.166, allocations: 356 kB / 1.415 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/1.167, allocations: 143.3 kB / 1.415 GB, free: 13.22 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/1.167, allocations: 379 kB / 1.415 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/1.167, allocations: 172.7 kB / 1.416 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/1.167, allocations: 0 / 1.416 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007792/1.168, allocations: 0.5251 MB / 1.416 GB, free: 12.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008382/1.169, allocations: 2.697 MB / 1.419 GB, free: 9.418 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/1.169, allocations: 8 kB / 1.419 GB, free: 9.41 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/1.169, allocations: 12 kB / 1.419 GB, free: 9.398 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003571/1.169, allocations: 103.3 kB / 1.419 GB, free: 9.301 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/1.169, allocations: 15.98 kB / 1.419 GB, free: 9.285 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/1.17, allocations: 39.53 kB / 1.419 GB, free: 9.246 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/1.17, allocations: 43.23 kB / 1.419 GB, free: 9.211 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.913e-06/1.17, allocations: 4 kB / 1.419 GB, free: 9.207 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006601/1.17, allocations: 446 kB / 1.419 GB, free: 8.863 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/1.17, allocations: 8 kB / 1.419 GB, free: 8.855 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/1.17, allocations: 12 kB / 1.419 GB, free: 8.844 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/1.171, allocations: 107.4 kB / 1.419 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/1.171, allocations: 15.84 kB / 1.42 GB, free: 8.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/1.171, allocations: 36.27 kB / 1.42 GB, free: 8.695 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.995e-05/1.171, allocations: 35.25 kB / 1.42 GB, free: 8.668 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$PRE.toOn.t_start,toOn.t_start,$PRE.toHold.t_start,toHold.t_start,$PRE.toDischarge.t_start,toDischarge.t_start,$PRE.toOff.t_start,toOff.t_start,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 (97): * Single equations (assignments): 97 * 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.0001463/1.171, allocations: 145.4 kB / 1.42 GB, free: 8.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.643e-05/1.171, allocations: 47.45 kB / 1.42 GB, free: 8.477 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005717/1.172, allocations: 337.2 kB / 1.42 GB, free: 8.227 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/1.172, allocations: 8 kB / 1.42 GB, free: 8.219 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/1.172, allocations: 4 kB / 1.42 GB, free: 8.215 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/1.172, allocations: 3.984 kB / 1.42 GB, free: 8.211 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/1.173, allocations: 0.9799 MB / 1.421 GB, free: 7.383 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/1.173, allocations: 0 / 1.421 GB, free: 7.383 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/1.174, allocations: 50.84 kB / 1.421 GB, free: 7.336 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/1.174, allocations: 4 kB / 1.421 GB, free: 7.332 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/1.174, allocations: 4 kB / 1.421 GB, free: 7.328 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/1.174, allocations: 4 kB / 1.421 GB, free: 7.324 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.174, allocations: 0 / 1.421 GB, free: 7.324 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000826/1.174, allocations: 0.6916 MB / 1.422 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001088/1.176, allocations: 1.229 MB / 1.423 GB, free: 5.629 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/1.176, allocations: 157.7 kB / 1.423 GB, free: 5.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.991e-05/1.176, allocations: 11.23 kB / 1.423 GB, free: 5.461 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/1.176, allocations: 8.062 kB / 1.423 GB, free: 5.453 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.176, allocations: 50.55 kB / 1.423 GB, free: 5.414 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/1.176, allocations: 19.86 kB / 1.423 GB, free: 5.398 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001552/1.176, allocations: 188.9 kB / 1.423 GB, free: 5.246 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00197/1.178, allocations: 218 kB / 1.424 GB, free: 5.035 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 36 (toOff.t_start,toDischarge.t_start,toHold.t_start,toOn.t_start,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: 10 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged,toOn.t_start,toHold.t_start,toDischarge.t_start,toOff.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.000192/1.178, allocations: 152.5 kB / 1.424 GB, free: 4.891 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009452/1.179, allocations: 0.6794 MB / 1.424 GB, free: 4.387 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/1.179, allocations: 3.938 kB / 1.424 GB, free: 4.383 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002577/1.18, allocations: 191.9 kB / 1.425 GB, free: 4.246 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004793/1.18, allocations: 81.59 kB / 1.425 GB, free: 4.18 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/1.182, allocations: 0.7394 MB / 1.425 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006123/1.182, allocations: 0.974 MB / 1.426 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.182, allocations: 0 / 1.426 GB, free: 2.5 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_latest_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)