Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.022/4.022, allocations: 433.2 MB / 440.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.241e-05/2.238e-05, allocations: 3.125 kB / 0.5325 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.221, allocations: 98.74 MB / 0.6289 GB, free: 9.164 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2581/0.4791, allocations: 127.9 MB / 0.7538 GB, free: 9.098 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/0.4795, allocations: 87.94 kB / 0.7539 GB, free: 9.012 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03184/0.5114, allocations: 7.963 MB / 0.7617 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5114, allocations: 0 / 0.7617 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.5e-05/0.5115, allocations: 15.94 kB / 0.7617 GB, free: 0.9883 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.001333/0.5128, allocations: 0.6155 MB / 0.7623 GB, free: 332 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.5129, allocations: 8.031 kB / 0.7623 GB, free: 324 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.513, allocations: 59.66 kB / 0.7623 GB, free: 264 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.5137, allocations: 331.2 kB / 0.7627 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.966e-05/0.5137, allocations: 23.98 kB / 0.7627 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.5139, allocations: 32 kB / 0.7627 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001079/0.5149, allocations: 374.5 kB / 0.7631 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.5162, allocations: 485.3 kB / 0.7635 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.5162, allocations: 0 / 0.7635 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.5163, allocations: 0 / 0.7635 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.79e-05/0.5163, allocations: 25.27 kB / 0.7636 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00342/0.5198, allocations: 1.794 MB / 0.7653 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007698/0.5206, allocations: 322.5 kB / 0.7656 GB, free: 12.75 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003694/0.521, allocations: 164.7 kB / 0.7658 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.339e-05/0.5211, allocations: 7.984 kB / 0.7658 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.5216, allocations: 205.9 kB / 0.766 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.496e-06/0.5216, allocations: 0 / 0.766 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008896/0.5225, allocations: 301.7 kB / 0.7663 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.5225, allocations: 67.39 kB / 0.7663 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.5229, allocations: 213 kB / 0.7665 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.55e-05/0.5229, allocations: 37.7 kB / 0.7666 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002123/0.5232, allocations: 216.7 kB / 0.7668 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.5233, allocations: 102.7 kB / 0.7669 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.165e-05/0.5234, allocations: 3.938 kB / 0.7669 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.5235, allocations: 342.8 kB / 0.7672 GB, free: 11.07 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000368/0.5239, allocations: 145.5 kB / 0.7673 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004695/0.5244, allocations: 256.5 kB / 0.7676 GB, free: 10.62 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004423/0.5248, allocations: 146.1 kB / 0.7677 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.5249, allocations: 4 kB / 0.7677 GB, free: 10.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001117/0.526, allocations: 446.6 kB / 0.7682 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.526, allocations: 8 kB / 0.7682 GB, free: 10.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.5261, allocations: 4 kB / 0.7682 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.826e-05/0.5261, allocations: 8 kB / 0.7682 GB, free: 10.02 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.5265, allocations: 59.84 kB / 0.7682 GB, free: 9.957 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.895e-05/0.5266, allocations: 11.94 kB / 0.7682 GB, free: 9.945 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000396/0.527, allocations: 40.06 kB / 0.7683 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.776e-05/0.5271, allocations: 24 kB / 0.7683 GB, free: 9.883 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0002147/0.5273, allocations: 150 kB / 0.7684 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007831/0.5281, allocations: 305.2 kB / 0.7687 GB, free: 9.426 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.37e-05/0.5282, allocations: 27.62 kB / 0.7688 GB, free: 9.398 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.5293, allocations: 379.9 kB / 0.7691 GB, free: 9.02 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.5293, allocations: 4 kB / 0.7691 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.5293, allocations: 7.938 kB / 0.7691 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.5293, allocations: 3.984 kB / 0.7691 GB, free: 9.004 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.5316, allocations: 0.9372 MB / 0.7701 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5316, allocations: 0 / 0.7701 GB, free: 8.02 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.5319, allocations: 39.91 kB / 0.7701 GB, free: 7.98 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.532, allocations: 4 kB / 0.7701 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.532, allocations: 0 / 0.7701 GB, free: 7.977 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.532, allocations: 4 kB / 0.7701 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.532, allocations: 0 / 0.7701 GB, free: 7.973 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.533, allocations: 463.6 kB / 0.7705 GB, free: 7.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/0.5331, allocations: 100.8 kB / 0.7706 GB, free: 7.383 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.5332, allocations: 4 kB / 0.7706 GB, free: 7.379 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/0.5335, allocations: 19.98 kB / 0.7707 GB, free: 7.359 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.5338, allocations: 64.34 kB / 0.7707 GB, free: 7.297 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.044e-05/0.5338, allocations: 19.98 kB / 0.7707 GB, free: 7.277 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001498/0.534, allocations: 132.3 kB / 0.7709 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.7e-07/0.534, allocations: 0 / 0.7709 GB, free: 7.148 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006414/0.5347, allocations: 79.78 kB / 0.7709 GB, free: 7.07 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001465/0.5361, allocations: 1.025 MB / 0.7719 GB, free: 6.027 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009557/0.5371, allocations: 387.7 kB / 0.7723 GB, free: 5.652 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5372, allocations: 3.938 kB / 0.7723 GB, free: 5.648 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004406/0.5376, allocations: 197.5 kB / 0.7725 GB, free: 5.453 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.538, allocations: 24.92 kB / 0.7725 GB, free: 5.43 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.54, allocations: 0.5964 MB / 0.7731 GB, free: 4.801 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.5405, allocations: 0.8231 MB / 0.7739 GB, free: 3.949 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0003815/0.5409, allocations: 67.23 kB / 0.774 GB, free: 3.883 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003441/0.5412, allocations: 143.4 kB / 0.7741 GB, free: 3.742 MB / 0.6511 GB Notification: Performance of SimCode: time 9.12e-07/0.5412, allocations: 0 / 0.7741 GB, free: 3.742 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.574/1.115, allocations: 6.757 MB / 0.7807 GB, free: 141.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002489/1.116, allocations: 183.2 kB / 0.7809 GB, free: 141.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.575, allocations: 4 kB / 0.7809 GB, free: 141.7 MB / 0.6511 GB