Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Sources.Validation.TimeTable,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.356/2.356, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001102/0.001102, allocations: 172.8 kB / 487.4 MB, free: 5.066 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.732/1.732, allocations: 221.5 MB / 0.7824 GB, free: 1 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.001139/0.001139, allocations: 103.7 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.483e-05/2.483e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.31, allocations: 142.4 MB / 1.206 GB, free: 43.81 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.37, allocations: 152.5 MB / 1.355 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/1.37, allocations: 75.48 kB / 1.355 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05634/1.427, allocations: 23.55 MB / 1.378 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.402e-06/1.427, allocations: 3.781 kB / 1.378 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.047e-05/1.427, allocations: 12 kB / 1.378 GB, free: 30.43 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001152/1.428, allocations: 0.7764 MB / 1.379 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/1.428, allocations: 7.656 kB / 1.379 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/1.428, allocations: 77.61 kB / 1.379 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/1.429, allocations: 0.6952 MB / 1.38 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/1.429, allocations: 3.844 kB / 1.38 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/1.429, allocations: 10.12 kB / 1.38 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001779/1.43, allocations: 94.27 kB / 1.38 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/1.43, allocations: 180.5 kB / 1.38 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/1.43, allocations: 7.938 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/1.43, allocations: 3.812 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/1.43, allocations: 3.906 kB / 1.38 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/1.431, allocations: 1.083 MB / 1.381 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/1.432, allocations: 248 kB / 1.381 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/1.432, allocations: 100 kB / 1.381 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/1.432, allocations: 11.77 kB / 1.381 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/1.432, allocations: 207.3 kB / 1.381 GB, free: 28.16 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 3.126e-06/1.432, allocations: 7.984 kB / 1.381 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.0005668/1.433, allocations: 330.9 kB / 1.382 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/1.433, allocations: 158.2 kB / 1.382 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000981/1.434, allocations: 0.9057 MB / 1.383 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/1.434, allocations: 32.86 kB / 1.383 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000213/1.434, allocations: 290 kB / 1.383 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.992e-05/1.434, allocations: 75.91 kB / 1.383 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/1.434, allocations: 0 / 1.383 GB, free: 27.44 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000149/1.434, allocations: 336.1 kB / 1.384 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/1.435, allocations: 230.8 kB / 1.384 GB, free: 27.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/1.435, allocations: 325.3 kB / 1.384 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006798/1.436, allocations: 303.1 kB / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.436, allocations: 0 / 1.384 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001225/1.437, allocations: 0.7439 MB / 1.385 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/1.437, allocations: 7.656 kB / 1.385 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/1.437, allocations: 3.875 kB / 1.385 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/1.437, allocations: 3.812 kB / 1.385 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/1.437, allocations: 119.9 kB / 1.385 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/1.437, allocations: 3.844 kB / 1.385 GB, free: 26.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/1.438, allocations: 35.52 kB / 1.385 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.297e-05/1.438, allocations: 41.73 kB / 1.385 GB, free: 26.69 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition3,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition2,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEvent,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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.0001533/1.438, allocations: 132.8 kB / 1.385 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004133/1.438, allocations: 329.1 kB / 1.386 GB, free: 26.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.413e-05/1.438, allocations: 73.91 kB / 1.386 GB, free: 26.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005421/1.439, allocations: 364.7 kB / 1.386 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/1.439, allocations: 7.781 kB / 1.386 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/1.439, allocations: 4 kB / 1.386 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/1.439, allocations: 0 / 1.386 GB, free: 26.31 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/1.439, allocations: 456.4 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.439, allocations: 3.906 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.672e-05/1.44, allocations: 24 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/1.44, allocations: 7.797 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/1.44, allocations: 3.906 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/1.44, allocations: 3.812 kB / 1.387 GB, free: 26.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.44, allocations: 7.953 kB / 1.387 GB, free: 26.03 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004734/1.44, allocations: 458.5 kB / 1.387 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/1.44, allocations: 173.7 kB / 1.387 GB, free: 25.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/1.44, allocations: 11.44 kB / 1.387 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/1.441, allocations: 11.67 kB / 1.387 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/1.441, allocations: 23.09 kB / 1.387 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/1.441, allocations: 18.86 kB / 1.387 GB, free: 25.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0006225/1.441, allocations: 0.5731 MB / 1.388 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.441, allocations: 0 / 1.388 GB, free: 25.46 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005034/1.442, allocations: 136.1 kB / 1.388 GB, free: 25.43 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001755/1.444, allocations: 1.565 MB / 1.39 GB, free: 24.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005133/1.444, allocations: 374.9 kB / 1.39 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/1.444, allocations: 0 / 1.39 GB, free: 24.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/1.444, allocations: 113 kB / 1.39 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008737/1.445, allocations: 195 kB / 1.39 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/1.447, allocations: 1.047 MB / 1.391 GB, free: 23.67 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005092/1.447, allocations: 0.9425 MB / 1.392 GB, free: 22.87 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003149/1.448, allocations: 114.2 kB / 1.392 GB, free: 22.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002824/1.448, allocations: 229.7 kB / 1.392 GB, free: 22.79 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/1.448, allocations: 0 / 1.392 GB, free: 22.79 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03513/1.483, allocations: 12.98 MB / 1.405 GB, free: 16.69 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/1.483, allocations: 187.7 kB / 1.405 GB, free: 16.49 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/3.743, allocations: 3.875 kB / 1.405 GB, free: 16.49 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat does not exist to compare? outputFormat=mat