Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001541/0.001541, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001438/0.001438, allocations: 191.8 kB / 16.25 MB, free: 6.594 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.406/1.406, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 390.3 MB / 0.6644 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 59.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5993/0.6008, allocations: 140.4 MB / 0.9493 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.001657/0.6025, allocations: 0.7387 MB / 0.95 GB, free: 8.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.6039, allocations: 1.335 MB / 0.9513 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.313e-05/0.6039, allocations: 1.375 kB / 0.9513 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005333/0.6045, allocations: 190.2 kB / 0.9515 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.6046, allocations: 96.8 kB / 0.9516 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006387/0.6053, allocations: 214 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.6057, allocations: 475.4 kB / 0.9522 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.598e-05/0.6058, allocations: 5.688 kB / 0.9522 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.606, allocations: 205.7 kB / 0.9524 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003216/0.6064, allocations: 213.2 kB / 0.9526 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.278e-05/0.6064, allocations: 20.97 kB / 0.9526 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.6066, allocations: 90.03 kB / 0.9527 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003087/0.607, allocations: 260.7 kB / 0.953 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.6071, allocations: 148.9 kB / 0.9531 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.6076, allocations: 473 kB / 0.9536 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.6076, allocations: 0 / 0.9536 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6076, allocations: 4 kB / 0.9536 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.6076, allocations: 1.125 kB / 0.9536 GB, free: 6.422 MB / 0.7169 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.001009/0.6087, allocations: 0.6354 MB / 0.9542 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.6087, allocations: 9.469 kB / 0.9542 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.221e-05/0.6087, allocations: 36.16 kB / 0.9542 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001281/0.6089, allocations: 42.5 kB / 0.9543 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.6094, allocations: 379.5 kB / 0.9546 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.6094, allocations: 17.36 kB / 0.9547 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/0.6095, allocations: 25.03 kB / 0.9547 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.6098, allocations: 184 kB / 0.9549 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.6098, allocations: 1.75 kB / 0.9549 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.6098, allocations: 7.984 kB / 0.9549 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.6098, allocations: 1.812 kB / 0.9549 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.61, allocations: 109.4 kB / 0.955 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003272/0.6103, allocations: 391.4 kB / 0.9553 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003973/0.6107, allocations: 316.7 kB / 0.9556 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.6109, allocations: 125.1 kB / 0.9558 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.142e-05/0.6109, allocations: 9.531 kB / 0.9558 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003734/0.6113, allocations: 283.7 kB / 0.956 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.6113, allocations: 0 / 0.956 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0007488/0.6121, allocations: 0.4883 MB / 0.9565 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.6121, allocations: 116.5 kB / 0.9566 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003658/0.6125, allocations: 398.1 kB / 0.957 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.6125, allocations: 36.73 kB / 0.957 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.6127, allocations: 159.8 kB / 0.9572 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.6127, allocations: 37.5 kB / 0.9572 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.6129, allocations: 113.2 kB / 0.9573 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.6129, allocations: 349.2 kB / 0.9577 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.6131, allocations: 82.48 kB / 0.9578 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003915/0.6134, allocations: 469.4 kB / 0.9582 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.6137, allocations: 254.8 kB / 0.9584 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.6137, allocations: 4.812 kB / 0.9584 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004489/0.6142, allocations: 321.7 kB / 0.9588 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.6142, allocations: 6.656 kB / 0.9588 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.6142, allocations: 11.72 kB / 0.9588 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.6142, allocations: 5.25 kB / 0.9588 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.6143, allocations: 31.89 kB / 0.9588 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.6144, allocations: 22.05 kB / 0.9588 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007044/0.6151, allocations: 66.58 kB / 0.9589 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.6151, allocations: 14.53 kB / 0.9589 GB, free: 2.438 MB / 0.7169 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.0001619/0.6153, allocations: 200.3 kB / 0.9591 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.513e-05/0.6153, allocations: 28.34 kB / 0.9591 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.6154, allocations: 32.23 kB / 0.9592 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.6154, allocations: 3.656 kB / 0.9592 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.6154, allocations: 1.344 kB / 0.9592 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.6154, allocations: 3.984 kB / 0.9592 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.6156, allocations: 284.5 kB / 0.9594 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.6156, allocations: 0 / 0.9594 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.667e-05/0.6156, allocations: 12.27 kB / 0.9594 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.6156, allocations: 1 kB / 0.9594 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.6157, allocations: 3.562 kB / 0.9595 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.6157, allocations: 2.312 kB / 0.9595 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.6157, allocations: 0 / 0.9595 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.6162, allocations: 443 kB / 0.9599 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.6162, allocations: 111.9 kB / 0.96 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.6163, allocations: 0 / 0.96 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.895e-05/0.6164, allocations: 7.5 kB / 0.96 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.6164, allocations: 17.97 kB / 0.96 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.6164, allocations: 10 kB / 0.96 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002478/0.6167, allocations: 288.9 kB / 0.9603 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6167, allocations: 3.938 kB / 0.9603 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000369/0.6171, allocations: 79.52 kB / 0.9604 GB, free: 1.422 MB / 0.7169 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.000764/0.6178, allocations: 1.002 MB / 0.9613 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004618/0.6183, allocations: 277.5 kB / 0.9616 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6183, allocations: 1.125 kB / 0.9616 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.6185, allocations: 143.6 kB / 0.9618 GB, free: 496 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.6188, allocations: 28 kB / 0.9618 GB, free: 480 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00388/0.6227, allocations: 3.299 MB / 0.965 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.623, allocations: 0.7662 MB / 0.9657 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001514/0.6232, allocations: 54.58 kB / 0.9658 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.6234, allocations: 80 kB / 0.9659 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of SimCode: time 2.7e-07/0.6234, allocations: 0 / 0.9659 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.6432, allocations: 7.436 MB / 0.9731 GB, free: 9.195 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.6434, allocations: 217.9 kB / 0.9733 GB, free: 8.938 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/2.628, allocations: 4 kB / 0.9734 GB, free: 8.934 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches