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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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"}) Notification: Performance of loadModel(Buildings): time 4.285/4.285, allocations: 432.6 MB / 445.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.958e-05/3.974e-05, allocations: 4.703 kB / 0.5383 GB, free: 10.31 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2411, allocations: 98.73 MB / 0.6347 GB, free: 1.914 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8928/1.134, allocations: 150.7 MB / 0.7818 GB, free: 56.68 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003556/1.134, allocations: 88.97 kB / 0.7819 GB, free: 56.68 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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/OpenModelica/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: Performance of FrontEnd - DAE generated: time 0.08564/1.22, allocations: 20.95 MB / 0.8024 GB, free: 54.75 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.104e-06/1.22, allocations: 0 / 0.8024 GB, free: 54.75 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.157e-05/1.22, allocations: 15.06 kB / 0.8024 GB, free: 54.75 MB / 0.6511 GB 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.002023/1.222, allocations: 0.7887 MB / 0.8032 GB, free: 54.21 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/1.222, allocations: 8.938 kB / 0.8032 GB, free: 54.21 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002295/1.223, allocations: 120.5 kB / 0.8033 GB, free: 54.17 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001032/1.224, allocations: 125.1 kB / 0.8034 GB, free: 54.13 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/1.225, allocations: 409 kB / 0.8038 GB, free: 53.88 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/1.225, allocations: 60.89 kB / 0.8039 GB, free: 53.88 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/1.225, allocations: 76.09 kB / 0.8039 GB, free: 53.88 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/1.227, allocations: 0.8385 MB / 0.8048 GB, free: 53.66 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/1.227, allocations: 9.266 kB / 0.8048 GB, free: 53.65 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.671e-05/1.227, allocations: 30.48 kB / 0.8048 GB, free: 53.65 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-05/1.227, allocations: 39.23 kB / 0.8048 GB, free: 53.65 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/1.229, allocations: 0.5554 MB / 0.8054 GB, free: 53.63 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/1.235, allocations: 3.673 MB / 0.809 GB, free: 51.22 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008116/1.236, allocations: 301.9 kB / 0.8093 GB, free: 51.18 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/1.236, allocations: 191.9 kB / 0.8094 GB, free: 51.17 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.25e-05/1.236, allocations: 5.5 kB / 0.8094 GB, free: 51.17 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004811/1.237, allocations: 210.8 kB / 0.8096 GB, free: 51.11 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.236e-06/1.237, allocations: 0 / 0.8096 GB, free: 51.11 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009048/1.238, allocations: 322.8 kB / 0.8099 GB, free: 51.05 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/1.238, allocations: 63.16 kB / 0.81 GB, free: 50.98 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005728/1.238, allocations: 386.5 kB / 0.8104 GB, free: 50.85 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/1.238, allocations: 44.7 kB / 0.8104 GB, free: 50.82 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/1.239, allocations: 341.7 kB / 0.8107 GB, free: 50.62 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/1.239, allocations: 133.7 kB / 0.8109 GB, free: 50.55 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/1.239, allocations: 15.03 kB / 0.8109 GB, free: 50.55 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001049/1.239, allocations: 355 kB / 0.8112 GB, free: 50.24 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/1.239, allocations: 150 kB / 0.8114 GB, free: 50.24 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/1.24, allocations: 387.5 kB / 0.8117 GB, free: 49.95 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004334/1.24, allocations: 183.1 kB / 0.8119 GB, free: 49.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/1.24, allocations: 3.906 kB / 0.8119 GB, free: 49.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001289/1.242, allocations: 0.5866 MB / 0.8125 GB, free: 49.81 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006004/1.242, allocations: 2.699 MB / 0.8151 GB, free: 46.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/1.242, allocations: 3.906 kB / 0.8151 GB, free: 46.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.911e-05/1.242, allocations: 15.72 kB / 0.8151 GB, free: 46.98 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007173/1.243, allocations: 102.5 kB / 0.8152 GB, free: 46.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.361e-05/1.243, allocations: 14.98 kB / 0.8153 GB, free: 46.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/1.244, allocations: 76.19 kB / 0.8153 GB, free: 46.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/1.244, allocations: 30.88 kB / 0.8154 GB, free: 46.93 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.244, allocations: 3.906 kB / 0.8154 GB, free: 46.93 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001147/1.245, allocations: 0.5147 MB / 0.8159 GB, free: 46.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/1.245, allocations: 11.8 kB / 0.8159 GB, free: 46.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/1.245, allocations: 12.56 kB / 0.8159 GB, free: 46.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/1.246, allocations: 103.5 kB / 0.816 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.517e-05/1.246, allocations: 15.56 kB / 0.816 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005784/1.246, allocations: 61.11 kB / 0.8161 GB, free: 46.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.57e-05/1.246, allocations: 30.34 kB / 0.8161 GB, free: 46.81 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.0002341/1.247, allocations: 169.7 kB / 0.8163 GB, free: 46.69 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/1.247, allocations: 54.81 kB / 0.8163 GB, free: 46.66 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009309/1.248, allocations: 383.7 kB / 0.8167 GB, free: 46.6 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/1.248, allocations: 3.906 kB / 0.8167 GB, free: 46.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/1.248, allocations: 0 / 0.8167 GB, free: 46.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/1.248, allocations: 0 / 0.8167 GB, free: 46.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/1.25, allocations: 1.087 MB / 0.8177 GB, free: 46.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/1.25, allocations: 4.062 kB / 0.8177 GB, free: 46.19 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/1.25, allocations: 45.66 kB / 0.8178 GB, free: 46.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/1.25, allocations: 0 / 0.8178 GB, free: 46.18 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.89e-05/1.25, allocations: 10.97 kB / 0.8178 GB, free: 46.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.493e-06/1.25, allocations: 3.906 kB / 0.8178 GB, free: 46.18 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.25, allocations: 0 / 0.8178 GB, free: 46.18 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/1.252, allocations: 0.6356 MB / 0.8184 GB, free: 45.96 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002418/1.252, allocations: 151.4 kB / 0.8186 GB, free: 45.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.423e-05/1.252, allocations: 14.03 kB / 0.8186 GB, free: 45.84 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/1.252, allocations: 11.09 kB / 0.8186 GB, free: 45.84 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/1.252, allocations: 58.58 kB / 0.8186 GB, free: 45.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-05/1.252, allocations: 15.44 kB / 0.8187 GB, free: 45.82 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003905/1.253, allocations: 263.3 kB / 0.8189 GB, free: 45.73 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.1e-07/1.253, allocations: 0 / 0.8189 GB, free: 45.73 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001233/1.254, allocations: 235.8 kB / 0.8191 GB, free: 45.71 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.001524/1.256, allocations: 1.347 MB / 0.8204 GB, free: 44.82 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001703/1.257, allocations: 0.7058 MB / 0.8211 GB, free: 44.75 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/1.257, allocations: 5.375 kB / 0.8211 GB, free: 44.75 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003952/1.258, allocations: 177.2 kB / 0.8213 GB, free: 44.74 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008708/1.259, allocations: 93.09 kB / 0.8214 GB, free: 44.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002619/1.261, allocations: 0.8407 MB / 0.8222 GB, free: 44.44 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/1.262, allocations: 0.9206 MB / 0.8231 GB, free: 43.73 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008478/1.263, allocations: 135.6 kB / 0.8232 GB, free: 43.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/1.263, allocations: 218.5 kB / 0.8235 GB, free: 43.69 MB / 0.6511 GB Notification: Performance of SimCode: time 1.452e-06/1.263, allocations: 0 / 0.8235 GB, free: 43.69 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04932/1.313, allocations: 10.53 MB / 0.8337 GB, free: 42.84 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002644/1.313, allocations: 151.9 kB / 0.8339 GB, free: 42.61 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.104/4.417, allocations: 0 / 0.8339 GB, free: 42.61 MB / 0.6511 GB