Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_latest_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.0008795/0.0008795, allocations: 101.7 kB / 15.71 MB, free: 460 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.0009412/0.0009414, allocations: 179.9 kB / 16.59 MB, free: 6.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.2 MB / 240.6 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.703/2.703, allocations: 436.7 MB / 0.7113 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003845, allocations: 11.98 kB / 0.8717 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028/1.029, allocations: 153.7 MB / 1.022 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002937/1.032, allocations: 1.93 MB / 1.024 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001653/1.033, allocations: 0.9198 MB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/1.034, allocations: 8 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001561/1.034, allocations: 39.59 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002348/1.034, allocations: 31.72 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/1.034, allocations: 179.8 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006373/1.035, allocations: 0.5543 MB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005103/1.036, allocations: 352.4 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/1.036, allocations: 143.4 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002373/1.036, allocations: 163.2 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.412e-05/1.036, allocations: 20 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/1.036, allocations: 35.98 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001285/1.036, allocations: 91.66 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/1.036, allocations: 97.45 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005457/1.037, allocations: 0.5357 MB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/1.037, allocations: 4 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.004e-06/1.037, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.376e-06/1.037, allocations: 0 / 1.027 GB, free: 11.99 MB / 0.7794 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.001103/1.038, allocations: 0.6393 MB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.038, allocations: 11.98 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/1.038, allocations: 51.44 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/1.039, allocations: 339 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/1.039, allocations: 49.27 kB / 1.028 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/1.039, allocations: 52 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/1.04, allocations: 0.589 MB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/1.04, allocations: 0 / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/1.04, allocations: 19.94 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.473e-05/1.04, allocations: 21 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007623/1.041, allocations: 423.7 kB / 1.029 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/1.043, allocations: 1.946 MB / 1.031 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006803/1.044, allocations: 395 kB / 1.031 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003413/1.045, allocations: 200.9 kB / 1.031 GB, free: 7.055 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.999e-05/1.045, allocations: 7.984 kB / 1.031 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005076/1.045, allocations: 284.9 kB / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.774e-06/1.045, allocations: 0 / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.0009919/1.046, allocations: 0.4912 MB / 1.032 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/1.046, allocations: 123 kB / 1.032 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/1.046, allocations: 231.1 kB / 1.032 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.105e-05/1.047, allocations: 53.69 kB / 1.032 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/1.047, allocations: 208.9 kB / 1.033 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/1.047, allocations: 118.5 kB / 1.033 GB, free: 5.484 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.534e-05/1.047, allocations: 12 kB / 1.033 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001827/1.047, allocations: 342.8 kB / 1.033 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/1.047, allocations: 169.2 kB / 1.033 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003894/1.048, allocations: 292.7 kB / 1.034 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003354/1.048, allocations: 178.1 kB / 1.034 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/1.048, allocations: 4 kB / 1.034 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008418/1.049, allocations: 0.5104 MB / 1.034 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/1.049, allocations: 4 kB / 1.034 GB, free: 3.934 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/1.049, allocations: 7.953 kB / 1.034 GB, free: 3.926 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.653e-05/1.049, allocations: 8 kB / 1.034 GB, free: 3.918 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/1.049, allocations: 59.84 kB / 1.034 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.999e-05/1.049, allocations: 11.94 kB / 1.034 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/1.05, allocations: 75.56 kB / 1.034 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.108e-05/1.05, allocations: 24 kB / 1.034 GB, free: 3.75 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$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,$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.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,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.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0003176/1.05, allocations: 230.9 kB / 1.035 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.791e-05/1.05, allocations: 23.72 kB / 1.035 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007978/1.051, allocations: 439.5 kB / 1.035 GB, free: 3.059 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/1.051, allocations: 11.89 kB / 1.035 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/1.051, allocations: 4 kB / 1.035 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/1.051, allocations: 3.984 kB / 1.035 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/1.053, allocations: 1.145 MB / 1.036 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.053, allocations: 0 / 1.036 GB, free: 1.828 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/1.053, allocations: 35.91 kB / 1.036 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/1.053, allocations: 0 / 1.036 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/1.053, allocations: 12 kB / 1.036 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-05/1.053, allocations: 15.98 kB / 1.036 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.053, allocations: 0 / 1.036 GB, free: 1.766 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007456/1.054, allocations: 0.5169 MB / 1.037 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.625e-05/1.054, allocations: 108.7 kB / 1.037 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/1.054, allocations: 19.98 kB / 1.037 GB, free: 1.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/1.054, allocations: 27.98 kB / 1.037 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/1.054, allocations: 72.27 kB / 1.037 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/1.054, allocations: 19.98 kB / 1.037 GB, free: 0.9609 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001287/1.054, allocations: 136.3 kB / 1.037 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3e-07/1.054, allocations: 0 / 1.037 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004781/1.055, allocations: 115.5 kB / 1.037 GB, free: 0.7148 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,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: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0002619/1.055, allocations: 151 kB / 1.037 GB, free: 0.5586 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007788/1.056, allocations: 445.8 kB / 1.038 GB, free: 128 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.056, allocations: 4 kB / 1.038 GB, free: 124 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003893/1.056, allocations: 222.3 kB / 1.038 GB, free: 15.91 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/1.057, allocations: 48.88 kB / 1.038 GB, free: 15.86 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001489/1.058, allocations: 0.8789 MB / 1.039 GB, free: 14.93 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/1.059, allocations: 0.8233 MB / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/1.059, allocations: 43.42 kB / 1.04 GB, free: 14.04 MB / 0.795 GB Notification: Performance of SimCode: time 4.81e-07/1.059, allocations: 0 / 1.04 GB, free: 14.04 MB / 0.795 GB Notification: Performance of Templates: time 0.008886/1.068, allocations: 5.272 MB / 1.045 GB, free: 8.781 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControlCalcHelperMain.o OMCppBuildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControlCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControlCalcHelperMain.o] Error 1