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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 178.4 kB / 498.1 MB, free: 5.754 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.1 MB / 0.7948 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009322/0.0009322, allocations: 88.33 kB / 0.9346 GB, free: 6.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003913/0.0003914, allocations: 11.59 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2749, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1792/0.4541, allocations: 149.3 MB / 1.369 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.4544, allocations: 75.95 kB / 1.369 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06324/0.5177, allocations: 21.35 MB / 1.39 GB, free: 7.176 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5177, allocations: 0 / 1.39 GB, free: 7.176 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.949e-05/0.5177, allocations: 8 kB / 1.39 GB, free: 7.168 MB / 0.8855 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.0008811/0.5186, allocations: 0.5568 MB / 1.39 GB, free: 6.559 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.5187, allocations: 8.031 kB / 1.39 GB, free: 6.551 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/0.5187, allocations: 34.55 kB / 1.39 GB, free: 6.508 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.5189, allocations: 39.58 kB / 1.39 GB, free: 6.469 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005917/0.5194, allocations: 367.4 kB / 1.391 GB, free: 6.07 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.5195, allocations: 19.98 kB / 1.391 GB, free: 6.051 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.656e-05/0.5196, allocations: 20 kB / 1.391 GB, free: 6.031 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003204/0.5199, allocations: 200 kB / 1.391 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5199, allocations: 3.938 kB / 1.391 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.5199, allocations: 0 / 1.391 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.5199, allocations: 0 / 1.391 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.5201, allocations: 111.9 kB / 1.391 GB, free: 5.707 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004727/0.5206, allocations: 391 kB / 1.391 GB, free: 5.27 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.5211, allocations: 319.8 kB / 1.392 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-06/0.5211, allocations: 0 / 1.392 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003992/0.5215, allocations: 281.6 kB / 1.392 GB, free: 4.633 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.5215, allocations: 0 / 1.392 GB, free: 4.633 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18): time 0.0007899/0.5223, allocations: 0.501 MB / 1.392 GB, free: 4.125 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.784e-05/0.5224, allocations: 118.8 kB / 1.393 GB, free: 3.984 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/0.5228, allocations: 359.7 kB / 1.393 GB, free: 3.625 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.393e-05/0.5229, allocations: 37.7 kB / 1.393 GB, free: 3.582 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.523, allocations: 169.4 kB / 1.393 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.523, allocations: 31.61 kB / 1.393 GB, free: 3.371 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.249e-05/0.5231, allocations: 4 kB / 1.393 GB, free: 3.367 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.5232, allocations: 346.8 kB / 1.394 GB, free: 3.02 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.5234, allocations: 87.88 kB / 1.394 GB, free: 2.934 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/0.5239, allocations: 474.8 kB / 1.394 GB, free: 2.336 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.524, allocations: 136.9 kB / 1.394 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.524, allocations: 0 / 1.394 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005011/0.5246, allocations: 332.9 kB / 1.394 GB, free: 1.871 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.5246, allocations: 4.781 kB / 1.394 GB, free: 1.867 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.5246, allocations: 4.125 kB / 1.394 GB, free: 1.863 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.5246, allocations: 8 kB / 1.395 GB, free: 1.855 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.5248, allocations: 35.92 kB / 1.395 GB, free: 1.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.5248, allocations: 7.938 kB / 1.395 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006661/0.5255, allocations: 56.44 kB / 1.395 GB, free: 1.758 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.5255, allocations: 16 kB / 1.395 GB, free: 1.742 MB / 0.8855 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.0002248/0.5258, allocations: 200.3 kB / 1.395 GB, free: 1.539 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.5258, allocations: 23.72 kB / 1.395 GB, free: 1.516 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.776e-05/0.5259, allocations: 41.88 kB / 1.395 GB, free: 1.477 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5259, allocations: 7.938 kB / 1.395 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5259, allocations: 0 / 1.395 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.5259, allocations: 0 / 1.395 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.5262, allocations: 297.3 kB / 1.395 GB, free: 1.129 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.5262, allocations: 0 / 1.395 GB, free: 1.129 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.458e-05/0.5262, allocations: 4 kB / 1.395 GB, free: 1.125 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.5262, allocations: 4 kB / 1.395 GB, free: 1.121 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.5263, allocations: 7.984 kB / 1.395 GB, free: 1.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.5263, allocations: 3.938 kB / 1.395 GB, free: 1.109 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5263, allocations: 0 / 1.395 GB, free: 1.109 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.5269, allocations: 466.6 kB / 1.396 GB, free: 0.6172 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.527, allocations: 116.7 kB / 1.396 GB, free: 496 kB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.527, allocations: 11.98 kB / 1.396 GB, free: 484 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.706e-05/0.5271, allocations: 0 / 1.396 GB, free: 484 kB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.5272, allocations: 23.94 kB / 1.396 GB, free: 460 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.824e-05/0.5272, allocations: 19.98 kB / 1.396 GB, free: 440 kB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002883/0.5275, allocations: 283 kB / 1.396 GB, free: 160 kB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5275, allocations: 0 / 1.396 GB, free: 160 kB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003942/0.5279, allocations: 83.98 kB / 1.396 GB, free: 76 kB / 0.8855 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.001049/0.529, allocations: 1.174 MB / 1.397 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0003904/0.5294, allocations: 248.7 kB / 1.398 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5294, allocations: 8 kB / 1.398 GB, free: 14.61 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.5296, allocations: 151.8 kB / 1.398 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002083/0.5298, allocations: 20.66 kB / 1.398 GB, free: 14.44 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.532, allocations: 3.208 MB / 1.401 GB, free: 11.11 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.5324, allocations: 0.7677 MB / 1.402 GB, free: 10.31 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001513/0.5326, allocations: 49.94 kB / 1.402 GB, free: 10.27 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.5327, allocations: 87.39 kB / 1.402 GB, free: 10.18 MB / 0.9011 GB Notification: Performance of SimCode: time 4.01e-07/0.5327, allocations: 0 / 1.402 GB, free: 10.18 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.5531, allocations: 7.138 MB / 1.409 GB, free: 3.258 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/0.5534, allocations: 189.9 kB / 1.409 GB, free: 3.02 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.159/2.712, allocations: 0 / 1.409 GB, free: 3.02 MB / 0.9011 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