Running: ./testmodel.py --libraries=/home/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 (/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.201/2.201, allocations: 248.7 MB / 256.2 MB, free: 7.078 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.001507/0.001507, allocations: 184.9 kB / 315.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.3 MB / 0.5662 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 90.28 kB / 0.6704 GB, free: 5.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.271e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2248, allocations: 106.3 MB / 0.8841 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9096/1.134, allocations: 158 MB / 1.038 GB, free: 14.87 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/1.135, allocations: 86.52 kB / 1.038 GB, free: 14.83 MB / 0.6667 GB [/home/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);. [/home/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 - DAE generated: time 0.08269/1.217, allocations: 20.9 MB / 1.059 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.034e-06/1.218, allocations: 0 / 1.059 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.413e-05/1.218, allocations: 20.88 kB / 1.059 GB, free: 13.75 MB / 0.6823 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.002131/1.22, allocations: 0.7851 MB / 1.06 GB, free: 12.96 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/1.22, allocations: 16.02 kB / 1.06 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/1.221, allocations: 119 kB / 1.06 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009414/1.222, allocations: 407.6 kB / 1.06 GB, free: 12.44 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.24e-05/1.222, allocations: 31.27 kB / 1.06 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/1.222, allocations: 51.98 kB / 1.06 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001371/1.224, allocations: 490.6 kB / 1.061 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/1.225, allocations: 0.7465 MB / 1.061 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/1.225, allocations: 4 kB / 1.061 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.077e-05/1.225, allocations: 3.312 kB / 1.061 GB, free: 11.42 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.805e-05/1.226, allocations: 41.98 kB / 1.061 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005682/1.231, allocations: 3.552 MB / 1.065 GB, free: 8.062 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007675/1.232, allocations: 276.9 kB / 1.065 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005051/1.233, allocations: 176.9 kB / 1.065 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.034e-05/1.233, allocations: 8.375 kB / 1.065 GB, free: 7.738 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004592/1.233, allocations: 198 kB / 1.066 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.627e-06/1.233, allocations: 4 kB / 1.066 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0008403/1.234, allocations: 292.9 kB / 1.066 GB, free: 7.344 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/1.234, allocations: 63.09 kB / 1.066 GB, free: 7.27 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004943/1.235, allocations: 307.1 kB / 1.066 GB, free: 7.031 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.589e-05/1.235, allocations: 36.83 kB / 1.066 GB, free: 6.992 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003636/1.235, allocations: 357.4 kB / 1.067 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/1.235, allocations: 123.3 kB / 1.067 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/1.235, allocations: 0 / 1.067 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000167/1.235, allocations: 351.7 kB / 1.067 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003555/1.236, allocations: 135.9 kB / 1.067 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005921/1.236, allocations: 364.3 kB / 1.068 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/1.237, allocations: 166.3 kB / 1.068 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/1.237, allocations: 3.938 kB / 1.068 GB, free: 5.668 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00127/1.238, allocations: 0.4993 MB / 1.068 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001149/1.239, allocations: 2.707 MB / 1.071 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/1.239, allocations: 12 kB / 1.071 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.759e-05/1.239, allocations: 8 kB / 1.071 GB, free: 2.371 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/1.24, allocations: 106.3 kB / 1.071 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.637e-05/1.24, allocations: 19.92 kB / 1.071 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006039/1.241, allocations: 39.58 kB / 1.071 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-05/1.241, allocations: 34.44 kB / 1.071 GB, free: 2.188 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/1.241, allocations: 4 kB / 1.071 GB, free: 2.184 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001134/1.242, allocations: 434.3 kB / 1.071 GB, free: 1.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.242, allocations: 4.125 kB / 1.071 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/1.242, allocations: 16 kB / 1.071 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006137/1.243, allocations: 106.1 kB / 1.072 GB, free: 1.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/1.243, allocations: 19.92 kB / 1.072 GB, free: 1.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005157/1.243, allocations: 35.62 kB / 1.072 GB, free: 1.676 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-05/1.244, allocations: 31.56 kB / 1.072 GB, free: 1.648 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.0002358/1.244, allocations: 141.2 kB / 1.072 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007801/1.245, allocations: 294 kB / 1.072 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.367e-05/1.245, allocations: 39.53 kB / 1.072 GB, free: 1.238 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009449/1.246, allocations: 335.3 kB / 1.072 GB, free: 0.9883 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.246, allocations: 7.953 kB / 1.072 GB, free: 0.9805 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/1.246, allocations: 3.938 kB / 1.072 GB, free: 0.9766 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.038e-06/1.246, allocations: 0 / 1.072 GB, free: 0.9766 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/1.248, allocations: 0.977 MB / 1.073 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/1.248, allocations: 3.953 kB / 1.073 GB, free: 132 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000383/1.248, allocations: 43.78 kB / 1.073 GB, free: 92 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.268e-06/1.248, allocations: 4 kB / 1.073 GB, free: 88 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/1.248, allocations: 11.8 kB / 1.073 GB, free: 80 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/1.248, allocations: 3.938 kB / 1.073 GB, free: 76 kB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/1.248, allocations: 4 kB / 1.073 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/1.25, allocations: 0.5913 MB / 1.074 GB, free: 15.58 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/1.25, allocations: 143.2 kB / 1.074 GB, free: 15.43 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.845e-05/1.25, allocations: 11.48 kB / 1.074 GB, free: 15.43 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/1.25, allocations: 8.062 kB / 1.074 GB, free: 15.42 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/1.251, allocations: 46.8 kB / 1.074 GB, free: 15.38 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/1.251, allocations: 14.81 kB / 1.074 GB, free: 15.36 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002848/1.251, allocations: 193.8 kB / 1.074 GB, free: 15.21 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.71e-07/1.251, allocations: 0 / 1.074 GB, free: 15.21 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001354/1.252, allocations: 215.5 kB / 1.075 GB, free: 15 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.00179/1.254, allocations: 1.3 MB / 1.076 GB, free: 13.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001721/1.256, allocations: 0.6444 MB / 1.077 GB, free: 13.34 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.256, allocations: 3.938 kB / 1.077 GB, free: 13.33 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004512/1.256, allocations: 168.1 kB / 1.077 GB, free: 13.21 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008287/1.257, allocations: 81.84 kB / 1.077 GB, free: 13.15 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/1.26, allocations: 0.797 MB / 1.078 GB, free: 12.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006327/1.261, allocations: 0.9188 MB / 1.078 GB, free: 11.46 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008274/1.262, allocations: 124.5 kB / 1.079 GB, free: 11.34 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003934/1.262, allocations: 208.9 kB / 1.079 GB, free: 11.29 MB / 0.698 GB Notification: Performance of SimCode: time 1.272e-06/1.262, allocations: 4 kB / 1.079 GB, free: 11.29 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06676/1.329, allocations: 9.491 MB / 1.088 GB, free: 1.855 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003882/1.329, allocations: 144.1 kB / 1.088 GB, free: 1.656 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.98/4.309, allocations: 7.125 kB / 1.088 GB, free: 1.652 MB / 0.698 GB