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.001546/0.001546, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 194.3 kB / 16.14 MB, free: 6.703 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.315/1.315, allocations: 205.1 MB / 222 MB, free: 4.746 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.651/1.651, allocations: 292.2 MB / 0.5484 GB, free: 13.69 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.001441/0.001441, allocations: 61.39 kB / 0.6708 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2025, allocations: 114.5 MB / 0.7827 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003382/0.2059, allocations: 2.358 MB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2074, allocations: 1.006 MB / 0.786 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.2076, allocations: 11.94 kB / 0.786 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.2077, allocations: 39.66 kB / 0.786 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.2079, allocations: 27.78 kB / 0.786 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.2084, allocations: 247.7 kB / 0.7863 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.2089, allocations: 0.5699 MB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004761/0.2094, allocations: 437.6 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002002/0.2096, allocations: 179.3 kB / 0.7874 GB, free: 9.152 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2098, allocations: 207 kB / 0.7876 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.958e-05/0.2099, allocations: 36 kB / 0.7876 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.21, allocations: 51.98 kB / 0.7877 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.2101, allocations: 115.6 kB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.2103, allocations: 214.8 kB / 0.788 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.2109, allocations: 0.6584 MB / 0.7887 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2109, allocations: 4 kB / 0.7887 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.61e-07/0.2109, allocations: 0 / 0.7887 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.2109, allocations: 4 kB / 0.7887 GB, free: 7.871 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.001072/0.212, allocations: 0.7165 MB / 0.7894 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.212, allocations: 11.97 kB / 0.7894 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.592e-05/0.2121, allocations: 52.38 kB / 0.7894 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.2125, allocations: 340.3 kB / 0.7898 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.99e-05/0.2126, allocations: 49.67 kB / 0.7898 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-05/0.2126, allocations: 52.38 kB / 0.7898 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.2136, allocations: 0.5816 MB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.2136, allocations: 0 / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.2136, allocations: 20 kB / 0.7904 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.2137, allocations: 24.94 kB / 0.7905 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007293/0.2144, allocations: 423.7 kB / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.2165, allocations: 1.919 MB / 0.7927 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.2171, allocations: 351 kB / 0.7931 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.2174, allocations: 195.9 kB / 0.7933 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.926e-05/0.2175, allocations: 8 kB / 0.7933 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.2178, allocations: 225.9 kB / 0.7935 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 2.063e-06/0.2178, allocations: 0 / 0.7935 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008566/0.2187, allocations: 482.5 kB / 0.7939 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.2188, allocations: 63.16 kB / 0.794 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.219, allocations: 245.7 kB / 0.7942 GB, free: 1.914 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.219, allocations: 45.7 kB / 0.7943 GB, free: 1.863 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.2192, allocations: 228.6 kB / 0.7945 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.281e-05/0.2192, allocations: 110.5 kB / 0.7946 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.2194, allocations: 142.3 kB / 0.7947 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.2196, allocations: 350.7 kB / 0.7951 GB, free: 1.031 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.2198, allocations: 161.2 kB / 0.7952 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.2202, allocations: 296.7 kB / 0.7955 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005462/0.2208, allocations: 398.5 kB / 0.7959 GB, free: 100 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2208, allocations: 0 / 0.7959 GB, free: 100 kB / 0.6075 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007822/0.2216, allocations: 0.5023 MB / 0.7964 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2216, allocations: 11.98 kB / 0.7964 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2216, allocations: 4 kB / 0.7964 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.2216, allocations: 4 kB / 0.7964 GB, free: 15.56 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.2219, allocations: 64.31 kB / 0.7965 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2219, allocations: 8 kB / 0.7965 GB, free: 15.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.2221, allocations: 63.5 kB / 0.7965 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.346e-05/0.2222, allocations: 24 kB / 0.7966 GB, free: 15.41 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.condition,con.t3.enableFire,con.t3.condition,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.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,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.0002311/0.2224, allocations: 231.5 kB / 0.7968 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.271e-05/0.2225, allocations: 35.62 kB / 0.7968 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007233/0.2232, allocations: 423.5 kB / 0.7972 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.2232, allocations: 7.984 kB / 0.7972 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2232, allocations: 0 / 0.7972 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2232, allocations: 0 / 0.7972 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.2247, allocations: 1.13 MB / 0.7983 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2247, allocations: 0 / 0.7983 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.2249, allocations: 39.91 kB / 0.7984 GB, free: 13.47 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2249, allocations: 7.875 kB / 0.7984 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.2249, allocations: 12 kB / 0.7984 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2249, allocations: 4 kB / 0.7984 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2249, allocations: 0 / 0.7984 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.2256, allocations: 499.7 kB / 0.7989 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.727e-05/0.2256, allocations: 116.6 kB / 0.799 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.2257, allocations: 8 kB / 0.799 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.2259, allocations: 19.98 kB / 0.799 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.226, allocations: 68.34 kB / 0.7991 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.987e-05/0.2261, allocations: 16 kB / 0.7991 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001046/0.2262, allocations: 136.2 kB / 0.7992 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2262, allocations: 8 kB / 0.7992 GB, free: 12.56 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003906/0.2266, allocations: 107.6 kB / 0.7993 GB, free: 12.45 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.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$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.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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.0001877/0.2268, allocations: 143 kB / 0.7995 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006911/0.2275, allocations: 442 kB / 0.7999 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2275, allocations: 0 / 0.7999 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003217/0.2278, allocations: 218.4 kB / 0.8001 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.2282, allocations: 49.59 kB / 0.8001 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.2294, allocations: 0.8915 MB / 0.801 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.2298, allocations: 0.8194 MB / 0.8018 GB, free: 9.852 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001988/0.23, allocations: 71.22 kB / 0.8019 GB, free: 9.785 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2301, allocations: 43.42 kB / 0.8019 GB, free: 9.742 MB / 0.6231 GB Notification: Performance of SimCode: time 3.41e-07/0.2301, allocations: 0 / 0.8019 GB, free: 9.742 MB / 0.6231 GB Notification: Performance of Templates: time 0.007401/0.2375, allocations: 3.993 MB / 0.8058 GB, free: 5.781 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)