Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.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.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_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.279/2.279, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001248/0.001248, allocations: 180.2 kB / 492.3 MB, free: 0.5898 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.669/1.669, allocations: 221.3 MB / 0.7871 GB, free: 12.86 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.001064/0.001064, allocations: 97.98 kB / 0.9267 GB, free: 13.92 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.772e-05/3.775e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2948, allocations: 142.4 MB / 1.213 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.327, allocations: 149.6 MB / 1.359 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/1.327, allocations: 73.2 kB / 1.359 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.117/1.444, allocations: 46.23 MB / 1.404 GB, free: 22.18 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.853e-06/1.444, allocations: 3.938 kB / 1.404 GB, free: 22.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.088e-05/1.444, allocations: 11.94 kB / 1.404 GB, free: 22.16 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001416/1.446, allocations: 0.6257 MB / 1.404 GB, free: 21.52 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.446, allocations: 12.03 kB / 1.404 GB, free: 21.51 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.189e-05/1.446, allocations: 45.92 kB / 1.405 GB, free: 21.46 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002835/1.446, allocations: 55.44 kB / 1.405 GB, free: 21.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009374/1.447, allocations: 0.5304 MB / 1.405 GB, free: 20.92 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/1.447, allocations: 26.98 kB / 1.405 GB, free: 20.9 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/1.447, allocations: 35.19 kB / 1.405 GB, free: 20.87 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/1.448, allocations: 308.5 kB / 1.405 GB, free: 20.63 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/1.448, allocations: 3.938 kB / 1.405 GB, free: 20.63 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/1.448, allocations: 3.438 kB / 1.405 GB, free: 20.63 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/1.448, allocations: 4 kB / 1.405 GB, free: 20.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003026/1.448, allocations: 223.5 kB / 1.406 GB, free: 20.48 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/1.45, allocations: 1.179 MB / 1.407 GB, free: 19.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004882/1.451, allocations: 470.4 kB / 1.407 GB, free: 19.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001953/1.451, allocations: 182 kB / 1.407 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/1.451, allocations: 4 kB / 1.407 GB, free: 18.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003904/1.451, allocations: 336.5 kB / 1.408 GB, free: 18.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=24): time 2.946e-06/1.451, allocations: 4 kB / 1.408 GB, free: 18.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=24): time 0.0007439/1.452, allocations: 0.4914 MB / 1.408 GB, free: 18.3 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/1.452, allocations: 118.6 kB / 1.408 GB, free: 18.16 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005705/1.453, allocations: 0.5368 MB / 1.409 GB, free: 17.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.453, allocations: 46.89 kB / 1.409 GB, free: 17.69 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/1.453, allocations: 209.9 kB / 1.409 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.95e-05/1.453, allocations: 53.75 kB / 1.409 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/1.453, allocations: 7.25 kB / 1.409 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001187/1.453, allocations: 363.8 kB / 1.41 GB, free: 17.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/1.453, allocations: 129.8 kB / 1.41 GB, free: 17.07 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/1.454, allocations: 0.7142 MB / 1.41 GB, free: 16.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/1.454, allocations: 181.4 kB / 1.411 GB, free: 16.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/1.454, allocations: 3.953 kB / 1.411 GB, free: 16.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005384/1.455, allocations: 416.8 kB / 1.411 GB, free: 15.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.455, allocations: 13.62 kB / 1.411 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/1.455, allocations: 4.188 kB / 1.411 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/1.455, allocations: 7.984 kB / 1.411 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/1.455, allocations: 41.8 kB / 1.411 GB, free: 15.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/1.455, allocations: 4 kB / 1.411 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/1.456, allocations: 94.25 kB / 1.411 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/1.456, allocations: 15.38 kB / 1.411 GB, free: 15.64 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],$PRE.booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[1],$PRE.booTimTab.intTimTab.y[2],booTimTab.intTimTab.y[2],$PRE.booTimTab.intTimTab.idx,booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],$PRE.booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[1],$PRE.booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.y[2],$PRE.booTimTabOneRow.intTimTab.idx,booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],$PRE.booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[1],$PRE.booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.y[2],$PRE.booTimTabTwi.intTimTab.idx,booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0001454/1.456, allocations: 163.2 kB / 1.411 GB, free: 15.48 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/1.456, allocations: 43.48 kB / 1.411 GB, free: 15.44 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-05/1.456, allocations: 53.73 kB / 1.411 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/1.456, allocations: 4.062 kB / 1.411 GB, free: 15.4 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.456, allocations: 4 kB / 1.411 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/1.456, allocations: 4 kB / 1.411 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003296/1.457, allocations: 413.9 kB / 1.412 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.457, allocations: 0 / 1.412 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.619e-05/1.457, allocations: 11.94 kB / 1.412 GB, free: 15.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/1.457, allocations: 4 kB / 1.412 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/1.457, allocations: 7.625 kB / 1.412 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/1.457, allocations: 0 / 1.412 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.457, allocations: 0 / 1.412 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006575/1.457, allocations: 0.5533 MB / 1.412 GB, free: 14.53 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/1.458, allocations: 135.3 kB / 1.412 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.415e-05/1.458, allocations: 7.984 kB / 1.412 GB, free: 14.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/1.458, allocations: 15.17 kB / 1.412 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/1.458, allocations: 33.97 kB / 1.412 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/1.458, allocations: 22.92 kB / 1.413 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004751/1.458, allocations: 427.6 kB / 1.413 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.458, allocations: 0 / 1.413 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005379/1.459, allocations: 114.8 kB / 1.413 GB, free: 13.89 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: 24 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,booTimTab.y[1],booTimTab.y[2],booTimTab.intTimTab.y[1],booTimTab.intTimTab.y[2],booTimTab.intTimTab.idx,$whenCondition5,booTimTabOneRow.y[1],booTimTabOneRow.y[2],booTimTabOneRow.intTimTab.y[1],booTimTabOneRow.intTimTab.y[2],booTimTabOneRow.intTimTab.idx,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booTimTabTwi.y[1],booTimTabTwi.y[2],booTimTabTwi.intTimTab.y[1],booTimTabTwi.intTimTab.y[2],booTimTabTwi.intTimTab.idx) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001053/1.46, allocations: 1.266 MB / 1.414 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005234/1.461, allocations: 346.2 kB / 1.415 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.461, allocations: 0 / 1.415 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002298/1.461, allocations: 196 kB / 1.415 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/1.461, allocations: 35.84 kB / 1.415 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/1.462, allocations: 0.7877 MB / 1.416 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/1.463, allocations: 0.849 MB / 1.416 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003047/1.463, allocations: 90.94 kB / 1.416 GB, free: 10.64 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/1.463, allocations: 128.8 kB / 1.417 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of SimCode: time 1.463e-06/1.463, allocations: 0 / 1.417 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/1.49, allocations: 11.34 MB / 1.428 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/1.49, allocations: 163.9 kB / 1.428 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/3.654, allocations: 3.125 kB / 1.428 GB, free: 15.31 MB / 0.8542 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_TimeTable.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable_res.mat does not exist to compare? outputFormat=mat