Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.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.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",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.277/2.277, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001069/0.001069, allocations: 184.8 kB / 487.4 MB, free: 5.055 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.506/1.506, allocations: 221.5 MB / 0.7824 GB, free: 1.016 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.000933/0.0009329, allocations: 103.7 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.762e-05/1.766e-05, allocations: 0 / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2854, allocations: 142.4 MB / 1.206 GB, free: 43.91 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.34, allocations: 148.9 MB / 1.351 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002589/1.34, allocations: 72.81 kB / 1.352 GB, free: 18.18 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0125/1.352, allocations: 3.94 MB / 1.355 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/1.352, allocations: 0 / 1.355 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.204e-05/1.352, allocations: 3.844 kB / 1.355 GB, free: 33.65 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006006/1.353, allocations: 428.5 kB / 1.356 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/1.353, allocations: 7.688 kB / 1.356 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/1.353, allocations: 16.2 kB / 1.356 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/1.353, allocations: 215.2 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/1.353, allocations: 3.844 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.263e-05/1.354, allocations: 8.297 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001196/1.354, allocations: 38.27 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/1.354, allocations: 90.41 kB / 1.356 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/1.354, allocations: 0 / 1.356 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/1.354, allocations: 3.359 kB / 1.356 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/1.354, allocations: 3.953 kB / 1.356 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002443/1.354, allocations: 207.1 kB / 1.356 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/1.354, allocations: 79.28 kB / 1.356 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.37e-05/1.354, allocations: 56.06 kB / 1.356 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/1.354, allocations: 4.547 kB / 1.356 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000185/1.355, allocations: 121.1 kB / 1.357 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/1.355, allocations: 3.938 kB / 1.357 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0004003/1.355, allocations: 158.9 kB / 1.357 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/1.355, allocations: 90.12 kB / 1.357 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001312/1.355, allocations: 137.2 kB / 1.357 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/1.355, allocations: 30.11 kB / 1.357 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/1.355, allocations: 104 kB / 1.357 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.784e-05/1.355, allocations: 33.64 kB / 1.357 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.673e-06/1.355, allocations: 0 / 1.357 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001566/1.355, allocations: 329.4 kB / 1.357 GB, free: 32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.098e-05/1.356, allocations: 41.47 kB / 1.357 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/1.356, allocations: 206.6 kB / 1.358 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/1.356, allocations: 68.83 kB / 1.358 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.356, allocations: 0 / 1.358 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002251/1.356, allocations: 159.5 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/1.356, allocations: 7.75 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.133e-05/1.356, allocations: 5.203 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/1.356, allocations: 4 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.33e-05/1.356, allocations: 13.34 kB / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/1.356, allocations: 0 / 1.358 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/1.357, allocations: 85.66 kB / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/1.357, allocations: 8.297 kB / 1.358 GB, free: 31.75 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001021/1.357, allocations: 113.3 kB / 1.358 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002383/1.357, allocations: 168.1 kB / 1.358 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.429e-05/1.357, allocations: 12.58 kB / 1.358 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.418e-05/1.357, allocations: 13 kB / 1.358 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/1.357, allocations: 8.5 kB / 1.358 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.357, allocations: 0 / 1.358 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.357, allocations: 4.531 kB / 1.358 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/1.357, allocations: 165.6 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/1.357, allocations: 3.844 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.201e-05/1.357, allocations: 3.844 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.357, allocations: 0 / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/1.357, allocations: 6.594 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/1.357, allocations: 0 / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.357, allocations: 4 kB / 1.359 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/1.358, allocations: 207.5 kB / 1.359 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.408e-05/1.358, allocations: 84.86 kB / 1.359 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/1.358, allocations: 0 / 1.359 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.284e-05/1.358, allocations: 7.844 kB / 1.359 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/1.358, allocations: 17.75 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/1.358, allocations: 3.844 kB / 1.359 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.78e-05/1.358, allocations: 112.9 kB / 1.359 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.358, allocations: 3.844 kB / 1.359 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000365/1.358, allocations: 76.62 kB / 1.359 GB, free: 31.11 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006784/1.359, allocations: 0.8872 MB / 1.36 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002086/1.359, allocations: 153.3 kB / 1.36 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.359, allocations: 0 / 1.36 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.709e-05/1.359, allocations: 40.16 kB / 1.36 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/1.359, allocations: 3.5 kB / 1.36 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/1.36, allocations: 230.2 kB / 1.36 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/1.36, allocations: 0.7095 MB / 1.361 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.698e-05/1.36, allocations: 11.02 kB / 1.361 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.912e-05/1.36, allocations: 26.44 kB / 1.361 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.36, allocations: 0 / 1.361 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/1.382, allocations: 3.241 MB / 1.364 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/1.382, allocations: 144.5 kB / 1.364 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/3.062, allocations: 4 kB / 1.364 GB, free: 29.01 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat does not exist to compare? outputFormat=mat