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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001127/0.001128, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001733/0.001733, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.511/2.511, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003988, allocations: 8 kB / 0.8146 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7993/0.7997, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable): time 0.0007326/0.8005, allocations: 405 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.8019, allocations: 1.293 MB / 0.9553 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.534e-05/0.8019, allocations: 5.031 kB / 0.9553 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.8023, allocations: 187.2 kB / 0.9554 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.8024, allocations: 100.9 kB / 0.9555 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.803, allocations: 196.4 kB / 0.9557 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.8034, allocations: 296.1 kB / 0.956 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.592e-05/0.8034, allocations: 8.281 kB / 0.956 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.8036, allocations: 188.8 kB / 0.9562 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.8039, allocations: 181.4 kB / 0.9564 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.8039, allocations: 10.66 kB / 0.9564 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.8041, allocations: 65.16 kB / 0.9564 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.8044, allocations: 241.4 kB / 0.9567 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.87e-05/0.8045, allocations: 59.89 kB / 0.9567 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003018/0.8048, allocations: 357.5 kB / 0.9571 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.8048, allocations: 0 / 0.9571 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8048, allocations: 0 / 0.9571 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.8048, allocations: 0 / 0.9571 GB, free: 5.723 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.0006837/0.8055, allocations: 0.5242 MB / 0.9576 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.8056, allocations: 9.625 kB / 0.9576 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.8056, allocations: 35.89 kB / 0.9576 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.167e-05/0.8057, allocations: 33.5 kB / 0.9577 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/0.8062, allocations: 383.4 kB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.8063, allocations: 8.25 kB / 0.958 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.535e-05/0.8063, allocations: 20.5 kB / 0.9581 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.8066, allocations: 191 kB / 0.9582 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.8066, allocations: 1 kB / 0.9582 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.805e-05/0.8066, allocations: 1.156 kB / 0.9582 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.8066, allocations: 5.109 kB / 0.9582 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.8068, allocations: 106.2 kB / 0.9583 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003544/0.8072, allocations: 394.5 kB / 0.9587 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.8076, allocations: 316 kB / 0.959 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.889e-06/0.8076, allocations: 5.438 kB / 0.959 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.808, allocations: 283.3 kB / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.808, allocations: 0 / 0.9593 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0007931/0.8088, allocations: 0.4905 MB / 0.9598 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.8089, allocations: 116.5 kB / 0.9599 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.8093, allocations: 396.3 kB / 0.9603 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.8094, allocations: 44.09 kB / 0.9603 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.8095, allocations: 148.1 kB / 0.9604 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.8096, allocations: 46.72 kB / 0.9605 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/0.8096, allocations: 5.312 kB / 0.9605 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.479e-05/0.8097, allocations: 344.5 kB / 0.9608 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.8098, allocations: 89.28 kB / 0.9609 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.8102, allocations: 462.8 kB / 0.9614 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.8104, allocations: 130.7 kB / 0.9615 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.8104, allocations: 5.062 kB / 0.9615 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004356/0.8108, allocations: 324.3 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.8109, allocations: 6.219 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.8109, allocations: 2.938 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.8109, allocations: 6.188 kB / 0.9618 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.8111, allocations: 37.42 kB / 0.9618 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.8111, allocations: 12.77 kB / 0.9619 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000753/0.8119, allocations: 78.08 kB / 0.9619 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.553e-05/0.8119, allocations: 13.25 kB / 0.9619 GB, free: 2.094 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 ($PRE.tabOneRow.y[1],tabOneRow.y[1],$PRE.tabOneRow.idx,tabOneRow.idx,$whenCondition10,$PRE.intTimTab1.y[1],intTimTab1.y[1],$PRE.intTimTab1.y[2],intTimTab1.y[2],$PRE.intTimTab1.idx,intTimTab1.idx,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$PRE.intTimTab.y[1],intTimTab.y[1],$PRE.intTimTab.y[2],intTimTab.y[2],$PRE.intTimTab.idx,intTimTab.idx,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.8121, allocations: 198.2 kB / 0.9621 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.8122, allocations: 28.72 kB / 0.9622 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.8122, allocations: 32.8 kB / 0.9622 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.8122, allocations: 2.375 kB / 0.9622 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.8122, allocations: 1.344 kB / 0.9622 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.8123, allocations: 5.266 kB / 0.9622 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002306/0.8125, allocations: 283.1 kB / 0.9625 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.8125, allocations: 1.062 kB / 0.9625 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.525e-05/0.8125, allocations: 3.531 kB / 0.9625 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.8125, allocations: 5.25 kB / 0.9625 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.8125, allocations: 8.797 kB / 0.9625 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.8126, allocations: 1.156 kB / 0.9625 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8126, allocations: 5.062 kB / 0.9625 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005185/0.8131, allocations: 464.4 kB / 0.9629 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.708e-05/0.8132, allocations: 114.2 kB / 0.963 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.8132, allocations: 7.984 kB / 0.9631 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.496e-05/0.8133, allocations: 5.953 kB / 0.9631 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.366e-05/0.8134, allocations: 15.14 kB / 0.9631 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.083e-05/0.8134, allocations: 19.19 kB / 0.9631 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002917/0.8137, allocations: 289.6 kB / 0.9634 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8137, allocations: 0 / 0.9634 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000414/0.8141, allocations: 79.58 kB / 0.9634 GB, free: 1.035 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 (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.0008491/0.815, allocations: 1.166 MB / 0.9646 GB, free: 96 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005006/0.8155, allocations: 263.9 kB / 0.9648 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.8155, allocations: 0 / 0.9648 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.8158, allocations: 143.2 kB / 0.965 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.816, allocations: 21.58 kB / 0.965 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.8184, allocations: 3.21 MB / 0.9681 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.8188, allocations: 0.7695 MB / 0.9689 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001478/0.8189, allocations: 46.03 kB / 0.9689 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.8191, allocations: 83.94 kB / 0.969 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of SimCode: time 7.21e-07/0.8191, allocations: 4 kB / 0.969 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.8408, allocations: 7.141 MB / 0.976 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.841, allocations: 199.6 kB / 0.9762 GB, free: 8.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.912/2.753, allocations: 4 kB / 0.9762 GB, free: 8.477 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable_res.mat does not exist to compare? outputFormat=mat