Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"dynamic"}) [: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.375/4.375, allocations: 404 MB / 410.9 MB, free: 4.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3441/4.719, allocations: 95.01 MB / 0.4941 GB, free: 7.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6901/5.409, allocations: 92.68 MB / 0.5846 GB, free: 3.41 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4707/5.88, allocations: 145.6 MB / 0.7268 GB, free: 4.062 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005989/5.881, allocations: 87.94 kB / 0.7269 GB, free: 3.977 MB / 0.6042 GB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/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/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38: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.1629/6.044, allocations: 21.11 MB / 0.7475 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.283e-05/6.044, allocations: 12 kB / 0.7475 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02977/6.073, allocations: 123.1 kB / 0.7476 GB, free: 14.47 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005727/6.079, allocations: 417.3 kB / 0.748 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/6.079, allocations: 24 kB / 0.748 GB, free: 14 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/6.08, allocations: 44 kB / 0.7481 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002901/6.083, allocations: 0.5037 MB / 0.7485 GB, free: 13.45 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00345/6.086, allocations: 0.7404 MB / 0.7493 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.01533/6.102, allocations: 11.84 kB / 0.7493 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003598/6.102, allocations: 0 / 0.7493 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001619/6.102, allocations: 45.3 kB / 0.7493 GB, free: 12.59 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01194/6.114, allocations: 3.16 MB / 0.7524 GB, free: 9.305 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/6.116, allocations: 279.9 kB / 0.7527 GB, free: 9.02 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/6.117, allocations: 180.4 kB / 0.7528 GB, free: 8.844 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.894e-05/6.117, allocations: 8.375 kB / 0.7529 GB, free: 8.836 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009236/6.118, allocations: 197 kB / 0.753 GB, free: 8.633 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 6.873e-06/6.118, allocations: 0 / 0.753 GB, free: 8.633 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001639/6.12, allocations: 268.9 kB / 0.7533 GB, free: 8.363 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/6.12, allocations: 67.39 kB / 0.7534 GB, free: 8.285 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/6.121, allocations: 305.6 kB / 0.7537 GB, free: 7.977 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0002186/6.121, allocations: 37.7 kB / 0.7537 GB, free: 7.934 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006097/6.122, allocations: 323.2 kB / 0.754 GB, free: 7.609 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/6.122, allocations: 114.5 kB / 0.7541 GB, free: 7.496 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.036e-05/6.122, allocations: 3.938 kB / 0.7541 GB, free: 7.492 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000341/6.123, allocations: 362.7 kB / 0.7545 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008378/6.124, allocations: 133.5 kB / 0.7546 GB, free: 7 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/6.125, allocations: 364 kB / 0.7549 GB, free: 6.547 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000991/6.126, allocations: 171 kB / 0.7551 GB, free: 6.379 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/6.126, allocations: 4 kB / 0.7551 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002844/6.129, allocations: 0.4998 MB / 0.7556 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.002014/6.131, allocations: 2.699 MB / 0.7582 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-05/6.131, allocations: 8 kB / 0.7582 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.243e-05/6.131, allocations: 15.98 kB / 0.7582 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/6.133, allocations: 103.8 kB / 0.7583 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.758e-05/6.133, allocations: 8 kB / 0.7584 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/6.134, allocations: 55.52 kB / 0.7584 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002074/6.134, allocations: 35.92 kB / 0.7584 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/6.134, allocations: 4 kB / 0.7584 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002465/6.137, allocations: 434 kB / 0.7589 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/6.137, allocations: 8 kB / 0.7589 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.23e-05/6.137, allocations: 12 kB / 0.7589 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/6.138, allocations: 99.77 kB / 0.759 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.846e-05/6.138, allocations: 20.61 kB / 0.759 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/6.14, allocations: 31.75 kB / 0.759 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/6.14, allocations: 31.98 kB / 0.7591 GB, free: 2.109 MB / 0.6355 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.0004315/6.14, allocations: 152.7 kB / 0.7592 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002236/6.14, allocations: 43.44 kB / 0.7592 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/6.143, allocations: 327.7 kB / 0.7596 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/6.143, allocations: 12 kB / 0.7596 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/6.143, allocations: 0 / 0.7596 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/6.143, allocations: 3.984 kB / 0.7596 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004775/6.147, allocations: 0.8936 MB / 0.7604 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.651e-05/6.148, allocations: 8.047 kB / 0.7604 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008193/6.148, allocations: 43.92 kB / 0.7605 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.333e-05/6.148, allocations: 11.88 kB / 0.7605 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.805e-05/6.149, allocations: 11.98 kB / 0.7605 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.08e-05/6.149, allocations: 0 / 0.7605 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/6.149, allocations: 0 / 0.7605 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002739/6.151, allocations: 0.5897 MB / 0.7611 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003854/6.155, allocations: 1.132 MB / 0.7622 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005677/6.156, allocations: 144.5 kB / 0.7623 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002027/6.156, allocations: 4 kB / 0.7623 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006955/6.157, allocations: 7.984 kB / 0.7623 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/6.157, allocations: 44.38 kB / 0.7624 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/6.157, allocations: 19.89 kB / 0.7624 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0006194/6.158, allocations: 196.6 kB / 0.7626 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.006811/6.165, allocations: 211.4 kB / 0.7628 GB, free: 14.13 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.0005918/6.166, allocations: 133.7 kB / 0.7629 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.003381/6.169, allocations: 0.6588 MB / 0.7636 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/6.169, allocations: 0 / 0.7636 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008459/6.17, allocations: 169.5 kB / 0.7637 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/6.172, allocations: 85.77 kB / 0.7638 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/6.176, allocations: 0.6998 MB / 0.7645 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/6.178, allocations: 0.9658 MB / 0.7654 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of SimCode: time 2.534e-06/6.178, allocations: 0 / 0.7654 GB, free: 11.36 MB / 0.6511 GB