Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Integers.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Integers_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.00726/0.00726, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001216/0.001217, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.484/2.484, allocations: 437 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 63.91 kB / 1.018 GB, free: 9.863 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8642/0.8658, allocations: 151.6 MB / 1.166 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.002004/0.8679, allocations: 0.6891 MB / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002098/0.87, allocations: 1.353 MB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.8701, allocations: 0 / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0005224/0.8707, allocations: 187.5 kB / 1.168 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.8708, allocations: 103.7 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008268/0.8717, allocations: 230.8 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0005976/0.8723, allocations: 499.7 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.678e-05/0.8723, allocations: 4 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002932/0.8726, allocations: 199.8 kB / 1.169 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.873, allocations: 207.5 kB / 1.17 GB, free: 324 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.8731, allocations: 24 kB / 1.17 GB, free: 300 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002696/0.8734, allocations: 91.88 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004017/0.8738, allocations: 247.5 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002378/0.8741, allocations: 151.3 kB / 1.17 GB, free: 15.81 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005902/0.8747, allocations: 481 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.8747, allocations: 0 / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.522e-06/0.8747, allocations: 0 / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.054e-05/0.8747, allocations: 0 / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001027/0.8757, allocations: 0.6346 MB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.8758, allocations: 16.92 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.34e-05/0.8758, allocations: 34.73 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.876, allocations: 32.66 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.8765, allocations: 380 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.8765, allocations: 16.36 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.062e-05/0.8766, allocations: 28.3 kB / 1.172 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.8769, allocations: 192.7 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.8769, allocations: 3.938 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.877, allocations: 4 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.877, allocations: 4 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.8771, allocations: 111.9 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004221/0.8776, allocations: 379.1 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000442/0.878, allocations: 323.7 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.8782, allocations: 118.5 kB / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.8782, allocations: 0 / 1.173 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000476/0.8787, allocations: 285.5 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 2.595e-06/0.8787, allocations: 0 / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18): time 0.0008475/0.8796, allocations: 0.4971 MB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.8796, allocations: 110.8 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004691/0.8801, allocations: 404.5 kB / 1.174 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.285e-05/0.8802, allocations: 37.7 kB / 1.174 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.8803, allocations: 160.6 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.8804, allocations: 39.59 kB / 1.174 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.8806, allocations: 113.6 kB / 1.174 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.8807, allocations: 342.8 kB / 1.175 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.8809, allocations: 87.95 kB / 1.175 GB, free: 10.76 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/0.8814, allocations: 463 kB / 1.175 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.8817, allocations: 261.4 kB / 1.175 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.8817, allocations: 0 / 1.175 GB, free: 9.879 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005367/0.8823, allocations: 332.8 kB / 1.176 GB, free: 9.547 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.8823, allocations: 11.94 kB / 1.176 GB, free: 9.535 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.8823, allocations: 4 kB / 1.176 GB, free: 9.531 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.8823, allocations: 4 kB / 1.176 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.8825, allocations: 27.92 kB / 1.176 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.8825, allocations: 8 kB / 1.176 GB, free: 9.492 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007098/0.8832, allocations: 81.12 kB / 1.176 GB, free: 9.414 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.8832, allocations: 12 kB / 1.176 GB, free: 9.402 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 26 (tabOneRow.idx,$PRE.tabOneRow.idx,tabOneRow.y[1],$PRE.tabOneRow.y[1],$whenCondition10,intTimTab1.idx,$PRE.intTimTab1.idx,intTimTab1.y[2],$PRE.intTimTab1.y[2],intTimTab1.y[1],$PRE.intTimTab1.y[1],$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab.idx,$PRE.intTimTab.idx,intTimTab.y[2],$PRE.intTimTab.y[2],intTimTab.y[1],$PRE.intTimTab.y[1],$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.000196/0.8834, allocations: 191.9 kB / 1.176 GB, free: 9.207 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.649e-05/0.8835, allocations: 31.66 kB / 1.176 GB, free: 9.176 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.24e-05/0.8836, allocations: 33.89 kB / 1.176 GB, free: 9.145 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.8836, allocations: 4 kB / 1.176 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.8836, allocations: 0 / 1.176 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.8836, allocations: 4 kB / 1.176 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002672/0.8839, allocations: 285.4 kB / 1.176 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.8839, allocations: 0 / 1.176 GB, free: 8.809 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.435e-05/0.8839, allocations: 4 kB / 1.176 GB, free: 8.805 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.8839, allocations: 7.938 kB / 1.176 GB, free: 8.797 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/0.884, allocations: 11.98 kB / 1.176 GB, free: 8.785 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.884, allocations: 4 kB / 1.176 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.884, allocations: 0 / 1.176 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005482/0.8845, allocations: 436.6 kB / 1.177 GB, free: 8.332 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.495e-05/0.8846, allocations: 112.6 kB / 1.177 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.8847, allocations: 4 kB / 1.177 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.709e-05/0.8848, allocations: 4 kB / 1.177 GB, free: 8.195 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.8848, allocations: 19.97 kB / 1.177 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.8849, allocations: 15.98 kB / 1.177 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002988/0.8852, allocations: 295 kB / 1.177 GB, free: 7.871 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8852, allocations: 0 / 1.177 GB, free: 7.871 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003995/0.8856, allocations: 76 kB / 1.177 GB, free: 7.797 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition10,tabOneRow.y[1],tabOneRow.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,intTimTab1.y[1],intTimTab1.y[2],intTimTab1.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,intTimTab.y[1],intTimTab.y[2],intTimTab.idx) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009308/0.8865, allocations: 1.001 MB / 1.178 GB, free: 6.758 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004067/0.8869, allocations: 255.6 kB / 1.179 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8869, allocations: 0 / 1.179 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.8871, allocations: 151.9 kB / 1.179 GB, free: 6.359 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.8874, allocations: 27.69 kB / 1.179 GB, free: 6.336 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.891, allocations: 3.255 MB / 1.182 GB, free: 2.887 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.8913, allocations: 0.7636 MB / 1.183 GB, free: 2.098 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.000125/0.8915, allocations: 58.11 kB / 1.183 GB, free: 2.043 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.8916, allocations: 87.39 kB / 1.183 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of SimCode: time 5.11e-07/0.8916, allocations: 0 / 1.183 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.9179, allocations: 7.587 MB / 1.19 GB, free: 10.57 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.984, allocations: 13.5 kB / 1.19 GB, free: 10.56 MB / 0.92 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches