Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_6_0_0_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 loadModel(Buildings): time 4.184/4.184, allocations: 433 MB / 440.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.537/4.721, allocations: 104.3 MB / 0.5319 GB, free: 13.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/4.964, allocations: 98.73 MB / 0.6283 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2855/5.25, allocations: 149.9 MB / 0.7747 GB, free: 3.652 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003788/5.25, allocations: 91.58 kB / 0.7748 GB, free: 3.566 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.4808/5.731, allocations: 21.17 MB / 0.7955 GB, free: 144.4 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/5.731, allocations: 8.844 kB / 0.7955 GB, free: 144.4 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/5.732, allocations: 130.1 kB / 0.7956 GB, free: 144.4 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/5.733, allocations: 406 kB / 0.796 GB, free: 144 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.417e-05/5.734, allocations: 28.44 kB / 0.796 GB, free: 144 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/5.734, allocations: 48.91 kB / 0.7961 GB, free: 144 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001708/5.735, allocations: 0.4984 MB / 0.7965 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001923/5.737, allocations: 0.7429 MB / 0.7973 GB, free: 143.3 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/5.738, allocations: 5.938 kB / 0.7973 GB, free: 143.3 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-05/5.738, allocations: 10.94 kB / 0.7973 GB, free: 143.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.094e-05/5.738, allocations: 39.27 kB / 0.7973 GB, free: 143.3 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005803/5.744, allocations: 3.533 MB / 0.8008 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/5.744, allocations: 271.3 kB / 0.801 GB, free: 140 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005686/5.745, allocations: 181.3 kB / 0.8012 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.731e-05/5.745, allocations: 6.484 kB / 0.8012 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004845/5.746, allocations: 189.7 kB / 0.8014 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.717e-06/5.746, allocations: 0 / 0.8014 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009118/5.747, allocations: 282.3 kB / 0.8017 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/5.747, allocations: 58.75 kB / 0.8017 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/5.747, allocations: 309.1 kB / 0.802 GB, free: 139.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.464e-05/5.747, allocations: 43.89 kB / 0.8021 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/5.747, allocations: 321 kB / 0.8024 GB, free: 139 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/5.748, allocations: 119.2 kB / 0.8025 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.5e-05/5.748, allocations: 0 / 0.8025 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001033/5.748, allocations: 353.4 kB / 0.8028 GB, free: 138.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/5.748, allocations: 138.2 kB / 0.8029 GB, free: 138.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/5.749, allocations: 368.4 kB / 0.8033 GB, free: 138.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/5.749, allocations: 166.2 kB / 0.8035 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/5.749, allocations: 2.625 kB / 0.8035 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001306/5.751, allocations: 0.5023 MB / 0.8039 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005738/5.751, allocations: 2.706 MB / 0.8066 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/5.751, allocations: 8.25 kB / 0.8066 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.544e-05/5.751, allocations: 11 kB / 0.8066 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007612/5.752, allocations: 103.2 kB / 0.8067 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.02e-05/5.752, allocations: 11 kB / 0.8067 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/5.753, allocations: 45.39 kB / 0.8068 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.101e-05/5.753, allocations: 38.12 kB / 0.8068 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/5.753, allocations: 5.25 kB / 0.8068 GB, free: 134.9 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00117/5.754, allocations: 433.4 kB / 0.8072 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/5.754, allocations: 6.281 kB / 0.8072 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/5.754, allocations: 11.91 kB / 0.8072 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006612/5.755, allocations: 104.2 kB / 0.8073 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/5.755, allocations: 14.16 kB / 0.8073 GB, free: 134.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005819/5.755, allocations: 35.55 kB / 0.8074 GB, free: 134.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.592e-05/5.756, allocations: 33.22 kB / 0.8074 GB, free: 134.6 MB / 0.6511 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.0002435/5.756, allocations: 143.1 kB / 0.8075 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/5.756, allocations: 47.02 kB / 0.8076 GB, free: 134.5 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/5.757, allocations: 333.9 kB / 0.8079 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/5.757, allocations: 5.656 kB / 0.8079 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/5.757, allocations: 4 kB / 0.8079 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/5.757, allocations: 5.078 kB / 0.8079 GB, free: 134.3 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/5.759, allocations: 0.9492 MB / 0.8089 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/5.759, allocations: 1.562 kB / 0.8089 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/5.76, allocations: 58.62 kB / 0.8089 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/5.76, allocations: 2.656 kB / 0.8089 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.78e-05/5.76, allocations: 2.125 kB / 0.8089 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.604e-06/5.76, allocations: 3.375 kB / 0.8089 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/5.76, allocations: 1 kB / 0.8089 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001333/5.761, allocations: 0.5909 MB / 0.8095 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001777/5.763, allocations: 1.129 MB / 0.8106 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/5.763, allocations: 146.6 kB / 0.8107 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/5.764, allocations: 10.61 kB / 0.8107 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00036/5.764, allocations: 4.75 kB / 0.8108 GB, free: 132.2 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/5.764, allocations: 45.39 kB / 0.8108 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.237e-05/5.764, allocations: 18.78 kB / 0.8108 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003426/5.765, allocations: 193.9 kB / 0.811 GB, free: 132 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.003309/5.768, allocations: 211 kB / 0.8112 GB, free: 132 MB / 0.6511 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.0003281/5.768, allocations: 133.1 kB / 0.8113 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002159/5.77, allocations: 0.6601 MB / 0.812 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/5.771, allocations: 4.125 kB / 0.812 GB, free: 131.6 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004247/5.771, allocations: 173.5 kB / 0.8121 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/5.772, allocations: 73.23 kB / 0.8122 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/5.774, allocations: 0.7041 MB / 0.8129 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006837/5.775, allocations: 0.9658 MB / 0.8138 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of SimCode: time 1.463e-06/5.775, allocations: 0 / 0.8138 GB, free: 129.6 MB / 0.6511 GB