Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.288/2.288, allocations: 253.1 MB / 260.4 MB, free: 0.5859 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001622/0.001622, allocations: 192.4 kB / 319.6 MB, free: 7.684 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.4 MB / 0.5704 GB, free: 25.62 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001279/0.001279, allocations: 91.33 kB / 0.6746 GB, free: 3.082 MB / 0.4949 GB Notification: Performance of FrontEnd - loaded program: time 1.396e-05/1.414e-05, allocations: 4 kB / 0.7843 GB, free: 2.707 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5789/0.579, allocations: 106.2 MB / 0.888 GB, free: 77.13 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7175/1.297, allocations: 157 MB / 1.041 GB, free: 60.11 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/1.297, allocations: 83.59 kB / 1.041 GB, free: 60.11 MB / 0.6824 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.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/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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: time 0.08004/1.377, allocations: 20.48 MB / 1.061 GB, free: 58.51 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 5.448e-05/1.377, allocations: 19.72 kB / 1.061 GB, free: 58.5 MB / 0.6824 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.001923/1.379, allocations: 0.7809 MB / 1.062 GB, free: 57.97 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/1.379, allocations: 7.875 kB / 1.062 GB, free: 57.97 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/1.38, allocations: 132.2 kB / 1.062 GB, free: 57.93 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009392/1.381, allocations: 411.9 kB / 1.063 GB, free: 57.67 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.948e-05/1.381, allocations: 30.75 kB / 1.063 GB, free: 57.67 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/1.381, allocations: 43.31 kB / 1.063 GB, free: 57.67 MB / 0.6824 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001487/1.383, allocations: 0.4988 MB / 1.063 GB, free: 57.66 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/1.385, allocations: 0.7583 MB / 1.064 GB, free: 57.45 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/1.385, allocations: 3.938 kB / 1.064 GB, free: 57.44 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.748e-05/1.385, allocations: 3.906 kB / 1.064 GB, free: 57.44 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-05/1.385, allocations: 42.91 kB / 1.064 GB, free: 57.44 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005273/1.39, allocations: 3.551 MB / 1.068 GB, free: 55.07 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007417/1.391, allocations: 268.2 kB / 1.068 GB, free: 55.04 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/1.392, allocations: 182 kB / 1.068 GB, free: 55.02 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 4.496e-05/1.392, allocations: 8.219 kB / 1.068 GB, free: 55.02 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004207/1.392, allocations: 194.6 kB / 1.068 GB, free: 54.96 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/1.392, allocations: 0 / 1.068 GB, free: 54.96 MB / 0.6824 GB Notification: Performance of matching and sorting (n=46): time 0.0008079/1.393, allocations: 272.7 kB / 1.068 GB, free: 54.91 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/1.393, allocations: 62.97 kB / 1.068 GB, free: 54.84 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/1.393, allocations: 314 kB / 1.069 GB, free: 54.72 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 0.0001173/1.394, allocations: 37.36 kB / 1.069 GB, free: 54.69 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/1.394, allocations: 324.9 kB / 1.069 GB, free: 54.48 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001265/1.394, allocations: 129.8 kB / 1.069 GB, free: 54.4 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.389e-05/1.394, allocations: 0 / 1.069 GB, free: 54.4 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001123/1.394, allocations: 350.9 kB / 1.07 GB, free: 54.09 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/1.394, allocations: 135.6 kB / 1.07 GB, free: 54.09 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000518/1.395, allocations: 368.7 kB / 1.07 GB, free: 53.81 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/1.395, allocations: 170.4 kB / 1.07 GB, free: 53.79 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/1.395, allocations: 3.969 kB / 1.07 GB, free: 53.79 MB / 0.6824 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001229/1.397, allocations: 0.4971 MB / 1.071 GB, free: 53.68 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007386/1.397, allocations: 2.702 MB / 1.073 GB, free: 50.85 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/1.398, allocations: 7.812 kB / 1.073 GB, free: 50.85 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.833e-05/1.398, allocations: 11.81 kB / 1.073 GB, free: 50.85 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000838/1.398, allocations: 105 kB / 1.073 GB, free: 50.84 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.636e-05/1.398, allocations: 15.66 kB / 1.073 GB, free: 50.83 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006471/1.399, allocations: 38.53 kB / 1.074 GB, free: 50.81 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.405e-05/1.399, allocations: 34.36 kB / 1.074 GB, free: 50.81 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/1.399, allocations: 3.938 kB / 1.074 GB, free: 50.81 MB / 0.6824 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001079/1.4, allocations: 440.4 kB / 1.074 GB, free: 50.75 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/1.4, allocations: 7.75 kB / 1.074 GB, free: 50.75 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/1.4, allocations: 15.75 kB / 1.074 GB, free: 50.75 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/1.401, allocations: 102.5 kB / 1.074 GB, free: 50.73 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/1.401, allocations: 14.91 kB / 1.074 GB, free: 50.73 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005915/1.402, allocations: 34.45 kB / 1.074 GB, free: 50.72 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/1.402, allocations: 34.59 kB / 1.074 GB, free: 50.72 MB / 0.6824 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.0002672/1.402, allocations: 144.2 kB / 1.074 GB, free: 50.59 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/1.402, allocations: 42.05 kB / 1.074 GB, free: 50.57 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/1.403, allocations: 338.4 kB / 1.075 GB, free: 50.5 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/1.403, allocations: 3.812 kB / 1.075 GB, free: 50.5 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/1.403, allocations: 3.516 kB / 1.075 GB, free: 50.5 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/1.403, allocations: 0 / 1.075 GB, free: 50.5 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/1.406, allocations: 0.9603 MB / 1.076 GB, free: 50.12 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/1.406, allocations: 3.938 kB / 1.076 GB, free: 50.12 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004143/1.406, allocations: 50.08 kB / 1.076 GB, free: 50.11 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/1.406, allocations: 7.969 kB / 1.076 GB, free: 50.11 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/1.406, allocations: 9.812 kB / 1.076 GB, free: 50.11 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/1.406, allocations: 0 / 1.076 GB, free: 50.11 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/1.406, allocations: 0 / 1.076 GB, free: 50.11 MB / 0.6824 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001236/1.407, allocations: 0.5925 MB / 1.076 GB, free: 49.89 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/1.408, allocations: 141.8 kB / 1.076 GB, free: 49.77 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/1.408, allocations: 4.656 kB / 1.076 GB, free: 49.77 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/1.408, allocations: 18.23 kB / 1.076 GB, free: 49.76 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/1.408, allocations: 42.02 kB / 1.076 GB, free: 49.76 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/1.408, allocations: 16.91 kB / 1.076 GB, free: 49.76 MB / 0.6824 GB Notification: Performance of sort global known variables: time 0.0003082/1.409, allocations: 192.2 kB / 1.077 GB, free: 49.68 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.001338/1.41, allocations: 216.7 kB / 1.077 GB, free: 49.64 MB / 0.6824 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.0002736/1.41, allocations: 132.5 kB / 1.077 GB, free: 49.54 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.00165/1.412, allocations: 0.656 MB / 1.078 GB, free: 49.49 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.412, allocations: 4.25 kB / 1.078 GB, free: 49.48 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.0003906/1.413, allocations: 165.9 kB / 1.078 GB, free: 49.47 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009051/1.413, allocations: 77.06 kB / 1.078 GB, free: 49.47 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/1.416, allocations: 0.7115 MB / 1.079 GB, free: 49.21 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008097/1.417, allocations: 0.9651 MB / 1.08 GB, free: 48.5 MB / 0.6824 GB Notification: Performance of SimCode: time 1.623e-06/1.417, allocations: 0 / 1.08 GB, free: 48.5 MB / 0.6824 GB Notification: Performance of Templates: time 0.02221/1.439, allocations: 7.195 MB / 1.087 GB, free: 48 MB / 0.6824 GB