Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 193 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.693/1.693, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 65.28 kB / 0.6715 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2107, allocations: 114.5 MB / 0.7834 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003522/0.2142, allocations: 2.264 MB / 0.7856 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.2159, allocations: 0.9944 MB / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.2161, allocations: 11.94 kB / 0.7866 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.2163, allocations: 59.34 kB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.2166, allocations: 47.47 kB / 0.7867 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005869/0.2172, allocations: 283.6 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005879/0.2178, allocations: 0.6325 MB / 0.7876 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005692/0.2184, allocations: 464.4 kB / 0.788 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.2186, allocations: 219.3 kB / 0.7882 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2189, allocations: 219.1 kB / 0.7884 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.2189, allocations: 64 kB / 0.7885 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.2191, allocations: 87.98 kB / 0.7886 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.2192, allocations: 151.5 kB / 0.7887 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2194, allocations: 246.8 kB / 0.7889 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005598/0.22, allocations: 0.7052 MB / 0.7896 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.22, allocations: 0 / 0.7896 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.22, allocations: 4 kB / 0.7896 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.22, allocations: 0 / 0.7896 GB, free: 7.066 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001034/0.2211, allocations: 0.7281 MB / 0.7903 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.2211, allocations: 8.031 kB / 0.7903 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.2212, allocations: 52.38 kB / 0.7904 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.2216, allocations: 340.3 kB / 0.7907 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.989e-05/0.2217, allocations: 45.69 kB / 0.7908 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.75e-05/0.2217, allocations: 60.36 kB / 0.7908 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008427/0.2226, allocations: 0.5777 MB / 0.7914 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.2226, allocations: 3.938 kB / 0.7914 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.417e-05/0.2227, allocations: 24 kB / 0.7914 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.2227, allocations: 21 kB / 0.7914 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006879/0.2234, allocations: 423.7 kB / 0.7918 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.2254, allocations: 1.919 MB / 0.7937 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000536/0.2259, allocations: 360.5 kB / 0.7941 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.2262, allocations: 184.8 kB / 0.7942 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.2263, allocations: 19.91 kB / 0.7943 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003521/0.2266, allocations: 225.9 kB / 0.7945 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 2.134e-06/0.2266, allocations: 0 / 0.7945 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008275/0.2275, allocations: 478.5 kB / 0.7949 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.2275, allocations: 63.16 kB / 0.795 GB, free: 1.348 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001883/0.2277, allocations: 245.7 kB / 0.7952 GB, free: 1.098 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.2278, allocations: 45.7 kB / 0.7953 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.2279, allocations: 220.7 kB / 0.7955 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.849e-05/0.228, allocations: 118.5 kB / 0.7956 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.2282, allocations: 138.3 kB / 0.7957 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2283, allocations: 350.7 kB / 0.7961 GB, free: 220 kB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.2285, allocations: 161.2 kB / 0.7962 GB, free: 60 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003556/0.2289, allocations: 292.7 kB / 0.7965 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.2295, allocations: 394.5 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2295, allocations: 4 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007616/0.2302, allocations: 0.5022 MB / 0.7974 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.2303, allocations: 8.938 kB / 0.7974 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2303, allocations: 4.469 kB / 0.7974 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2303, allocations: 8 kB / 0.7974 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.2305, allocations: 67.84 kB / 0.7974 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2306, allocations: 7.984 kB / 0.7974 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.2308, allocations: 59.45 kB / 0.7975 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.2308, allocations: 24 kB / 0.7975 GB, free: 14.6 MB / 0.6231 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,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002303/0.2311, allocations: 235.5 kB / 0.7978 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.2311, allocations: 31.62 kB / 0.7978 GB, free: 14.33 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007149/0.2318, allocations: 427.4 kB / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2319, allocations: 4 kB / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2319, allocations: 0 / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.2319, allocations: 0 / 0.7982 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.2333, allocations: 1.122 MB / 0.7993 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2333, allocations: 0 / 0.7993 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.2335, allocations: 43.84 kB / 0.7993 GB, free: 12.67 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.2335, allocations: 3.938 kB / 0.7993 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.2335, allocations: 8 kB / 0.7993 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.253e-06/0.2335, allocations: 7.984 kB / 0.7994 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.2335, allocations: 4 kB / 0.7994 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006249/0.2342, allocations: 0.4997 MB / 0.7998 GB, free: 12.13 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.668e-05/0.2342, allocations: 116.5 kB / 0.8 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.2343, allocations: 8 kB / 0.8 GB, free: 11.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.2345, allocations: 27.97 kB / 0.8 GB, free: 11.96 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.2346, allocations: 60.38 kB / 0.8 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.2347, allocations: 19.98 kB / 0.8001 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.456e-05/0.2348, allocations: 140.2 kB / 0.8002 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2348, allocations: 0 / 0.8002 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004068/0.2352, allocations: 115.5 kB / 0.8003 GB, free: 11.63 MB / 0.6231 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.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001933/0.2354, allocations: 139.1 kB / 0.8004 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008907/0.2363, allocations: 477.9 kB / 0.8009 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2363, allocations: 0 / 0.8009 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003185/0.2366, allocations: 218.4 kB / 0.8011 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.237, allocations: 43.92 kB / 0.8011 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.2381, allocations: 0.7333 MB / 0.8019 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.2385, allocations: 0.823 MB / 0.8027 GB, free: 9.16 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001991/0.2387, allocations: 67.23 kB / 0.8027 GB, free: 9.094 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2388, allocations: 47.42 kB / 0.8028 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of SimCode: time 2.1e-07/0.2388, allocations: 0 / 0.8028 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of Templates: time 0.007982/0.2468, allocations: 4.348 MB / 0.807 GB, free: 4.727 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)