Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001951/0.00195, allocations: 108 kB / 15.61 MB, free: 152 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.002272/0.002272, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.617/2.617, allocations: 461.9 MB / 0.7346 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 64.92 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2702, allocations: 157.4 MB / 1.053 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable): time 0.003722/0.2739, allocations: 2.488 MB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002495/0.2765, allocations: 1.571 MB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002674/0.2768, allocations: 11.94 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005696/0.2774, allocations: 326.8 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.278, allocations: 330.6 kB / 1.058 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009039/0.2789, allocations: 449.7 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000703/0.2796, allocations: 0.709 MB / 1.059 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.2798, allocations: 77.72 kB / 1.059 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.2802, allocations: 322.7 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003464/0.2805, allocations: 314.7 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.09e-05/0.2806, allocations: 28 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.2808, allocations: 91.95 kB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.281, allocations: 187.3 kB / 1.06 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.2812, allocations: 278.1 kB / 1.06 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006139/0.2818, allocations: 0.7319 MB / 1.061 GB, free: 332 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2818, allocations: 0 / 1.061 GB, free: 332 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2818, allocations: 0 / 1.061 GB, free: 332 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.456e-05/0.2819, allocations: 4 kB / 1.061 GB, free: 328 kB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001392/0.2833, allocations: 0.9951 MB / 1.062 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2833, allocations: 8.625 kB / 1.062 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.547e-05/0.2833, allocations: 42.73 kB / 1.062 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.2835, allocations: 80 kB / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007821/0.2843, allocations: 0.6249 MB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.2843, allocations: 16.12 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.2843, allocations: 12 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.2847, allocations: 195.4 kB / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.2847, allocations: 4 kB / 1.063 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.2847, allocations: 4 kB / 1.063 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2847, allocations: 4 kB / 1.063 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.285, allocations: 99.81 kB / 1.063 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.2862, allocations: 1.055 MB / 1.064 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.2868, allocations: 285 kB / 1.064 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002088/0.287, allocations: 108.2 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.287, allocations: 4 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003491/0.2874, allocations: 228.6 kB / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 1.664e-06/0.2874, allocations: 0 / 1.064 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.000857/0.2882, allocations: 417.7 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.2883, allocations: 174.1 kB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.2894, allocations: 1.036 MB / 1.066 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.2894, allocations: 37.7 kB / 1.066 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.2897, allocations: 288.8 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.817e-05/0.2897, allocations: 75.08 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.2899, allocations: 138.2 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.29, allocations: 330 kB / 1.067 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.2904, allocations: 213.2 kB / 1.067 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003945/0.2908, allocations: 307 kB / 1.067 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.2914, allocations: 410.4 kB / 1.068 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2914, allocations: 4 kB / 1.068 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001031/0.2925, allocations: 0.6726 MB / 1.068 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2925, allocations: 8 kB / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.2925, allocations: 0 / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2925, allocations: 8 kB / 1.068 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.2929, allocations: 119.8 kB / 1.068 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.2929, allocations: 4.156 kB / 1.068 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.2932, allocations: 47.67 kB / 1.068 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/0.2932, allocations: 27.98 kB / 1.068 GB, free: 7.906 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition5,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition3,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLinCon.tab.nextTimeEvent,$whenCondition1,timTabLinCon.tab.nextTimeEventScaled,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0002577/0.2935, allocations: 267 kB / 1.069 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.278e-05/0.2936, allocations: 75.14 kB / 1.069 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.2937, allocations: 69.89 kB / 1.069 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2937, allocations: 7.938 kB / 1.069 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2937, allocations: 0 / 1.069 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.2937, allocations: 11.98 kB / 1.069 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.2941, allocations: 465.1 kB / 1.069 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2941, allocations: 0 / 1.069 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.988e-05/0.2942, allocations: 19.94 kB / 1.069 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.2942, allocations: 0 / 1.069 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.2942, allocations: 15.98 kB / 1.069 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.2942, allocations: 8 kB / 1.069 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2942, allocations: 4 kB / 1.069 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005876/0.2948, allocations: 388.3 kB / 1.07 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.295, allocations: 164.1 kB / 1.07 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.2951, allocations: 11.98 kB / 1.07 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.2952, allocations: 23.91 kB / 1.07 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.305e-05/0.2953, allocations: 27.97 kB / 1.07 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.2953, allocations: 15.94 kB / 1.07 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006675/0.296, allocations: 0.6005 MB / 1.071 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.296, allocations: 0 / 1.071 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004678/0.2965, allocations: 116 kB / 1.071 GB, free: 5.543 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001788/0.2983, allocations: 1.305 MB / 1.072 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007258/0.299, allocations: 419.1 kB / 1.072 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.299, allocations: 3.938 kB / 1.072 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002288/0.2993, allocations: 112.2 kB / 1.072 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008286/0.3001, allocations: 211.4 kB / 1.073 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006986/0.3071, allocations: 5.984 MB / 1.078 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.3075, allocations: 0.9246 MB / 1.079 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002477/0.3078, allocations: 120.9 kB / 1.079 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.3081, allocations: 231.3 kB / 1.08 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of SimCode: time 3.31e-07/0.3081, allocations: 0 / 1.08 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03162/0.3397, allocations: 13.35 MB / 1.093 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.51/9.85, allocations: 6.359 kB / 1.093 GB, free: 15.03 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_TimeTable.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.TimeTable.pipe 2>&1)