Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 3.889/3.889, allocations: 433.4 MB / 440.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.497e-05/1.508e-05, allocations: 0 / 0.5325 GB, free: 1.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5819/0.5819, allocations: 98.71 MB / 0.6289 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2313/0.8133, allocations: 150 MB / 0.7754 GB, free: 9.508 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.8136, allocations: 87.94 kB / 0.7755 GB, free: 9.422 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.07665/0.8903, allocations: 20.78 MB / 0.7958 GB, free: 4.438 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.095e-06/0.8903, allocations: 0 / 0.7958 GB, free: 4.438 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 5.22e-05/0.8904, allocations: 23.94 kB / 0.7958 GB, free: 4.414 MB / 0.6667 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.001704/0.8921, allocations: 0.7784 MB / 0.7966 GB, free: 3.578 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.8922, allocations: 16.02 kB / 0.7966 GB, free: 3.562 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009036/0.8931, allocations: 123 kB / 0.7967 GB, free: 3.441 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008636/0.894, allocations: 405.8 kB / 0.7971 GB, free: 3.008 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.8941, allocations: 32 kB / 0.7971 GB, free: 2.977 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.8942, allocations: 48 kB / 0.7972 GB, free: 2.93 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001327/0.8956, allocations: 0.492 MB / 0.7976 GB, free: 2.438 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.8972, allocations: 0.7406 MB / 0.7984 GB, free: 1.629 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.023e-05/0.8973, allocations: 4 kB / 0.7984 GB, free: 1.625 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.452e-05/0.8974, allocations: 4 kB / 0.7984 GB, free: 1.621 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.439e-05/0.8975, allocations: 41.3 kB / 0.7984 GB, free: 1.582 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4445/1.342, allocations: 3.511 MB / 0.8018 GB, free: 153.5 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007575/1.343, allocations: 268.6 kB / 0.8021 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/1.343, allocations: 183.6 kB / 0.8023 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/1.343, allocations: 13.59 kB / 0.8023 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004585/1.344, allocations: 197 kB / 0.8025 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=46): time 4.248e-06/1.344, allocations: 1.219 kB / 0.8025 GB, free: 153.4 MB / 0.6667 GB Notification: Performance of matching and sorting (n=46): time 0.0008559/1.345, allocations: 289.9 kB / 0.8027 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/1.345, allocations: 63.92 kB / 0.8028 GB, free: 153.3 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004815/1.345, allocations: 309.3 kB / 0.8031 GB, free: 153.1 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/1.345, allocations: 35.81 kB / 0.8031 GB, free: 153.1 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/1.346, allocations: 347.7 kB / 0.8035 GB, free: 152.9 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/1.346, allocations: 118.1 kB / 0.8036 GB, free: 152.9 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/1.346, allocations: 0 / 0.8036 GB, free: 152.9 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001065/1.346, allocations: 353.8 kB / 0.8039 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003672/1.346, allocations: 134.1 kB / 0.804 GB, free: 152.6 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/1.347, allocations: 362.9 kB / 0.8044 GB, free: 152.3 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004429/1.347, allocations: 174.9 kB / 0.8046 GB, free: 152.3 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.488e-06/1.347, allocations: 2.812 kB / 0.8046 GB, free: 152.3 MB / 0.6667 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001138/1.348, allocations: 0.5033 MB / 0.805 GB, free: 152.2 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005304/1.349, allocations: 2.703 MB / 0.8077 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/1.349, allocations: 7.656 kB / 0.8077 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.638e-05/1.349, allocations: 11.81 kB / 0.8077 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004918/1.35, allocations: 105.7 kB / 0.8078 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/1.35, allocations: 14.91 kB / 0.8078 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/1.35, allocations: 43.84 kB / 0.8079 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-05/1.35, allocations: 35.28 kB / 0.8079 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/1.35, allocations: 3.594 kB / 0.8079 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009935/1.351, allocations: 432.8 kB / 0.8083 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/1.351, allocations: 6.812 kB / 0.8083 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/1.351, allocations: 19.61 kB / 0.8083 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/1.352, allocations: 107.6 kB / 0.8084 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-05/1.352, allocations: 17.88 kB / 0.8085 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00044/1.352, allocations: 26.41 kB / 0.8085 GB, free: 149.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/1.352, allocations: 32.95 kB / 0.8085 GB, free: 149.4 MB / 0.6667 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.0002069/1.353, allocations: 146.1 kB / 0.8087 GB, free: 149.3 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.593e-05/1.353, allocations: 46.84 kB / 0.8087 GB, free: 149.2 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008612/1.354, allocations: 339.7 kB / 0.809 GB, free: 149.2 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/1.354, allocations: 8.891 kB / 0.809 GB, free: 149.2 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.616e-06/1.354, allocations: 0 / 0.809 GB, free: 149.2 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/1.354, allocations: 3.516 kB / 0.809 GB, free: 149.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/1.356, allocations: 0.9675 MB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.32e-06/1.356, allocations: 3.469 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/1.356, allocations: 44.41 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/1.356, allocations: 3.484 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.463e-05/1.356, allocations: 3.859 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.974e-06/1.356, allocations: 2.656 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.493e-06/1.356, allocations: 2.172 kB / 0.81 GB, free: 148.8 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/1.357, allocations: 0.5925 MB / 0.8106 GB, free: 148.6 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002002/1.357, allocations: 144.9 kB / 0.8108 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/1.357, allocations: 5.125 kB / 0.8108 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/1.358, allocations: 6.031 kB / 0.8108 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/1.358, allocations: 49.39 kB / 0.8108 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.535e-05/1.358, allocations: 17.16 kB / 0.8108 GB, free: 148.5 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000248/1.358, allocations: 198.4 kB / 0.811 GB, free: 148.4 MB / 0.6667 GB Notification: Performance of sort global known variables: time 1.058e-06/1.358, allocations: 0 / 0.811 GB, free: 148.4 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001235/1.359, allocations: 215.2 kB / 0.8112 GB, free: 148.4 MB / 0.6667 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.0002185/1.36, allocations: 137.3 kB / 0.8114 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00141/1.361, allocations: 0.6423 MB / 0.812 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.875e-06/1.361, allocations: 0 / 0.812 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003405/1.361, allocations: 165.3 kB / 0.8121 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/1.362, allocations: 81.91 kB / 0.8122 GB, free: 148.2 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/1.364, allocations: 0.6722 MB / 0.8129 GB, free: 147.9 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/1.364, allocations: 0.9224 MB / 0.8138 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.000686/1.365, allocations: 121.1 kB / 0.8139 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/1.365, allocations: 45.53 kB / 0.8139 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of SimCode: time 1.876e-06/1.365, allocations: 0 / 0.8139 GB, free: 147.2 MB / 0.6667 GB Notification: Performance of Templates: time 0.01613/1.382, allocations: 5.384 MB / 0.8192 GB, free: 146.9 MB / 0.6667 GB