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.281/2.281, allocations: 387.4 MB / 394.8 MB, free: 13.38 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.001241/0.001241, allocations: 180.7 kB / 487.4 MB, free: 5.082 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.626/1.626, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008697/0.0008697, allocations: 103.7 kB / 0.9219 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.845e-05/2.846e-05, allocations: 4 kB / 1.067 GB, free: 185.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.318, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.322, allocations: 148.6 MB / 1.351 GB, free: 18.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/1.322, allocations: 73.52 kB / 1.351 GB, free: 18.13 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0577/1.38, allocations: 21.25 MB / 1.372 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.664e-06/1.38, allocations: 0 / 1.372 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.032e-05/1.38, allocations: 3.812 kB / 1.372 GB, free: 32.6 MB / 0.8386 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.000957/1.381, allocations: 0.4888 MB / 1.373 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.381, allocations: 15.44 kB / 1.373 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/1.382, allocations: 27.09 kB / 1.373 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/1.382, allocations: 373.5 kB / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/1.382, allocations: 0 / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/1.382, allocations: 17.23 kB / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001841/1.383, allocations: 112.1 kB / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/1.383, allocations: 184.1 kB / 1.373 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/1.383, allocations: 0 / 1.373 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/1.383, allocations: 4 kB / 1.373 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/1.383, allocations: 6.672 kB / 1.373 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004865/1.383, allocations: 359.7 kB / 1.374 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/1.384, allocations: 313.7 kB / 1.374 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/1.384, allocations: 124.1 kB / 1.374 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/1.384, allocations: 0 / 1.374 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003593/1.384, allocations: 283.6 kB / 1.374 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.813e-06/1.384, allocations: 0 / 1.374 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0007196/1.385, allocations: 400.4 kB / 1.375 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/1.385, allocations: 113.6 kB / 1.375 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/1.385, allocations: 342.1 kB / 1.375 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.609e-05/1.386, allocations: 32.89 kB / 1.375 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/1.386, allocations: 160.1 kB / 1.375 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/1.386, allocations: 33.95 kB / 1.375 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/1.386, allocations: 0 / 1.375 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001452/1.386, allocations: 349 kB / 1.376 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/1.386, allocations: 88.61 kB / 1.376 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/1.386, allocations: 453.4 kB / 1.376 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000442/1.387, allocations: 166.4 kB / 1.376 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/1.387, allocations: 0 / 1.376 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006361/1.387, allocations: 335.9 kB / 1.377 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/1.387, allocations: 7.719 kB / 1.377 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/1.388, allocations: 0 / 1.377 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/1.388, allocations: 7.688 kB / 1.377 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/1.388, allocations: 27.42 kB / 1.377 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/1.388, allocations: 12.03 kB / 1.377 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006265/1.388, allocations: 43.28 kB / 1.377 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/1.388, allocations: 14.66 kB / 1.377 GB, free: 29.94 MB / 0.8386 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 () * 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.0001534/1.389, allocations: 138.1 kB / 1.377 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004703/1.389, allocations: 395.6 kB / 1.377 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/1.389, allocations: 35.05 kB / 1.377 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.737e-05/1.389, allocations: 32.42 kB / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/1.389, allocations: 0 / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.389, allocations: 3.906 kB / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.389, allocations: 0 / 1.377 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/1.389, allocations: 262.8 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.389, allocations: 0 / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.759e-05/1.389, allocations: 3.875 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/1.389, allocations: 3.812 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/1.39, allocations: 7.656 kB / 1.378 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.39, allocations: 7.984 kB / 1.378 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.39, allocations: 3.938 kB / 1.378 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/1.39, allocations: 450.2 kB / 1.378 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.026e-05/1.39, allocations: 115.2 kB / 1.378 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/1.39, allocations: 11.92 kB / 1.378 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.503e-05/1.39, allocations: 0 / 1.378 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/1.39, allocations: 15.33 kB / 1.378 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.903e-05/1.39, allocations: 30.75 kB / 1.378 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002554/1.391, allocations: 270.8 kB / 1.378 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.391, allocations: 0 / 1.378 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004775/1.391, allocations: 77.58 kB / 1.378 GB, free: 29.04 MB / 0.8386 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 () * 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.000991/1.392, allocations: 1.165 MB / 1.38 GB, free: 28.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000344/1.392, allocations: 237.6 kB / 1.38 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.392, allocations: 3.812 kB / 1.38 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/1.393, allocations: 143.1 kB / 1.38 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/1.393, allocations: 23.84 kB / 1.38 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009662/1.394, allocations: 0.5086 MB / 1.381 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/1.394, allocations: 0.7731 MB / 1.381 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001671/1.394, allocations: 48.92 kB / 1.381 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/1.395, allocations: 84.72 kB / 1.381 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.395, allocations: 4 kB / 1.381 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02838/1.423, allocations: 6.508 MB / 1.388 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/1.423, allocations: 159.1 kB / 1.388 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/3.49, allocations: 0 / 1.388 GB, free: 23.84 MB / 0.8386 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