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"}) Notification: Performance of loadModel(Buildings): time 4.403/4.403, allocations: 433.2 MB / 440.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.091e-05/2.101e-05, allocations: 2.188 kB / 0.5325 GB, free: 12.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2157, allocations: 98.74 MB / 0.6289 GB, free: 9.117 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2999/0.5157, allocations: 150 MB / 0.7754 GB, free: 2.906 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003512/0.5161, allocations: 87.95 kB / 0.7755 GB, free: 2.82 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: Performance of FrontEnd - DAE generated: time 0.6102/1.126, allocations: 20.77 MB / 0.7957 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.964e-06/1.126, allocations: 0 / 0.7957 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.725e-05/1.126, allocations: 20.75 kB / 0.7958 GB, free: 144.2 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.002012/1.128, allocations: 0.787 MB / 0.7965 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/1.129, allocations: 9.562 kB / 0.7965 GB, free: 143.6 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/1.13, allocations: 119.9 kB / 0.7967 GB, free: 143.5 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008927/1.131, allocations: 415 kB / 0.7971 GB, free: 143.2 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/1.131, allocations: 29.12 kB / 0.7971 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/1.131, allocations: 45.81 kB / 0.7971 GB, free: 143.1 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001455/1.132, allocations: 0.4919 MB / 0.7976 GB, free: 142.9 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001649/1.134, allocations: 0.735 MB / 0.7983 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/1.134, allocations: 1.469 kB / 0.7983 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.42e-05/1.134, allocations: 2.5 kB / 0.7983 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.561e-05/1.134, allocations: 47.23 kB / 0.7984 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/1.139, allocations: 3.518 MB / 0.8018 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007666/1.14, allocations: 284.9 kB / 0.8021 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/1.141, allocations: 180 kB / 0.8023 GB, free: 139 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.747e-05/1.141, allocations: 9.484 kB / 0.8023 GB, free: 139 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004495/1.141, allocations: 201.5 kB / 0.8025 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.266e-06/1.141, allocations: 0 / 0.8025 GB, free: 138.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0007906/1.142, allocations: 292.6 kB / 0.8027 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/1.142, allocations: 67.56 kB / 0.8028 GB, free: 138.7 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004254/1.143, allocations: 308.8 kB / 0.8031 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/1.143, allocations: 35.02 kB / 0.8031 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/1.143, allocations: 347.4 kB / 0.8035 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/1.143, allocations: 121.1 kB / 0.8036 GB, free: 138 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/1.143, allocations: 4 kB / 0.8036 GB, free: 138 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000101/1.143, allocations: 349.8 kB / 0.8039 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/1.144, allocations: 137.5 kB / 0.804 GB, free: 137.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004751/1.144, allocations: 364.1 kB / 0.8044 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003886/1.145, allocations: 165 kB / 0.8045 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/1.145, allocations: 0 / 0.8045 GB, free: 137.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001121/1.146, allocations: 0.5013 MB / 0.805 GB, free: 136.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005394/1.146, allocations: 2.705 MB / 0.8077 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/1.146, allocations: 11.75 kB / 0.8077 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.201e-05/1.146, allocations: 11.59 kB / 0.8077 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006824/1.147, allocations: 98.23 kB / 0.8078 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/1.147, allocations: 19.64 kB / 0.8078 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005634/1.148, allocations: 39.33 kB / 0.8078 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.151e-05/1.148, allocations: 35.25 kB / 0.8079 GB, free: 134 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/1.148, allocations: 3.953 kB / 0.8079 GB, free: 134 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009987/1.149, allocations: 441.3 kB / 0.8083 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/1.149, allocations: 11.89 kB / 0.8083 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/1.149, allocations: 11.47 kB / 0.8083 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000574/1.149, allocations: 101.4 kB / 0.8084 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/1.149, allocations: 19.58 kB / 0.8084 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005065/1.15, allocations: 27.52 kB / 0.8085 GB, free: 133.7 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.787e-05/1.15, allocations: 35.09 kB / 0.8085 GB, free: 133.7 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.0002246/1.15, allocations: 147.8 kB / 0.8086 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007168/1.151, allocations: 288.7 kB / 0.8089 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/1.151, allocations: 43.09 kB / 0.809 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009218/1.152, allocations: 340.9 kB / 0.8093 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/1.152, allocations: 3.812 kB / 0.8093 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/1.152, allocations: 3.984 kB / 0.8093 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/1.152, allocations: 3.938 kB / 0.8093 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/1.154, allocations: 0.9717 MB / 0.8102 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/1.154, allocations: 7.656 kB / 0.8103 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003723/1.155, allocations: 51.25 kB / 0.8103 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/1.155, allocations: 0 / 0.8103 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/1.155, allocations: 3.969 kB / 0.8103 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/1.155, allocations: 8.062 kB / 0.8103 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.155, allocations: 3.875 kB / 0.8103 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/1.156, allocations: 0.584 MB / 0.8109 GB, free: 132.1 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/1.156, allocations: 147.6 kB / 0.811 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.17e-05/1.156, allocations: 7.781 kB / 0.811 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003058/1.156, allocations: 7.828 kB / 0.811 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/1.157, allocations: 51.41 kB / 0.8111 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/1.157, allocations: 15.56 kB / 0.8111 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002457/1.157, allocations: 198.2 kB / 0.8113 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.11e-07/1.157, allocations: 0 / 0.8113 GB, free: 131.8 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001174/1.158, allocations: 208.6 kB / 0.8115 GB, free: 131.7 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.001407/1.16, allocations: 1.3 MB / 0.8128 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001471/1.161, allocations: 0.6458 MB / 0.8134 GB, free: 129.8 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.161, allocations: 0 / 0.8134 GB, free: 129.8 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003749/1.162, allocations: 162.8 kB / 0.8136 GB, free: 129.7 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000831/1.162, allocations: 79.34 kB / 0.8136 GB, free: 129.6 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/1.165, allocations: 0.7893 MB / 0.8144 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/1.165, allocations: 0.9196 MB / 0.8153 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008393/1.166, allocations: 120.5 kB / 0.8154 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/1.167, allocations: 215.3 kB / 0.8156 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of SimCode: time 1.763e-06/1.167, allocations: 3.938 kB / 0.8156 GB, free: 127.5 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05898/1.226, allocations: 9.452 MB / 0.8249 GB, free: 118.1 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/1.226, allocations: 140.8 kB / 0.825 GB, free: 117.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.019/4.245, allocations: 0 / 0.825 GB, free: 117.9 MB / 0.6511 GB