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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001463, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004545/0.0004546, allocations: 11.94 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7131/0.7136, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001232/0.7149, allocations: 1.112 MB / 0.9547 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006324/0.7155, allocations: 448.1 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.7156, allocations: 0 / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.332e-05/0.7156, allocations: 5.766 kB / 0.9551 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.418e-05/0.7157, allocations: 11.39 kB / 0.9551 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.7162, allocations: 195 kB / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.7164, allocations: 87.11 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.393e-05/0.7164, allocations: 3.969 kB / 0.9554 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.011e-05/0.7165, allocations: 59.89 kB / 0.9554 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.7166, allocations: 37.88 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.7166, allocations: 5.531 kB / 0.9555 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.7168, allocations: 133.6 kB / 0.9556 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.08e-05/0.7169, allocations: 34.48 kB / 0.9556 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.482e-05/0.7169, allocations: 47.08 kB / 0.9557 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.7171, allocations: 157.4 kB / 0.9558 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.7171, allocations: 0 / 0.9558 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.223e-06/0.7172, allocations: 0 / 0.9558 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.7172, allocations: 4 kB / 0.9558 GB, free: 6.391 MB / 0.7169 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.0003956/0.7176, allocations: 427.3 kB / 0.9562 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7176, allocations: 9 kB / 0.9563 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.268e-05/0.7177, allocations: 36.7 kB / 0.9563 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.7177, allocations: 19.7 kB / 0.9563 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.7179, allocations: 200.3 kB / 0.9565 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.7179, allocations: 5.281 kB / 0.9565 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.7179, allocations: 21.09 kB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.7181, allocations: 82.38 kB / 0.9566 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.7181, allocations: 0 / 0.9566 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.7181, allocations: 5.359 kB / 0.9566 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.7181, allocations: 0 / 0.9566 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.065e-05/0.7182, allocations: 35.42 kB / 0.9566 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.7184, allocations: 232.7 kB / 0.9569 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.889e-05/0.7185, allocations: 82.53 kB / 0.9569 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.7185, allocations: 1.188 kB / 0.9569 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.7187, allocations: 109.4 kB / 0.957 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.7187, allocations: 0 / 0.957 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003456/0.719, allocations: 351.4 kB / 0.9574 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.7191, allocations: 89.78 kB / 0.9575 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.596e-05/0.7192, allocations: 153.3 kB / 0.9576 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.7192, allocations: 38.12 kB / 0.9577 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.7193, allocations: 102.9 kB / 0.9578 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.684e-05/0.7193, allocations: 33.05 kB / 0.9578 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.7193, allocations: 4 kB / 0.9578 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.928e-05/0.7194, allocations: 323.3 kB / 0.9581 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.118e-05/0.7194, allocations: 44.27 kB / 0.9581 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.7196, allocations: 200.4 kB / 0.9583 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.949e-05/0.7197, allocations: 67.33 kB / 0.9584 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7197, allocations: 0.875 kB / 0.9584 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002111/0.7199, allocations: 153 kB / 0.9585 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.7199, allocations: 5.781 kB / 0.9585 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.72, allocations: 7.391 kB / 0.9586 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.72, allocations: 9.297 kB / 0.9586 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.518e-05/0.7201, allocations: 10.84 kB / 0.9586 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.7201, allocations: 1.344 kB / 0.9586 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.7204, allocations: 89.81 kB / 0.9587 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.7204, allocations: 3.875 kB / 0.9587 GB, free: 3.781 MB / 0.7169 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 () * Number of clocked 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 9.341e-05/0.7205, allocations: 139.9 kB / 0.9588 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.7205, allocations: 9.344 kB / 0.9588 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.7206, allocations: 19.61 kB / 0.9588 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.7206, allocations: 5.391 kB / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.7206, allocations: 1.469 kB / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.7206, allocations: 0 / 0.9588 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.963e-05/0.7207, allocations: 195.2 kB / 0.959 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.7207, allocations: 3.984 kB / 0.959 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.341e-05/0.7207, allocations: 9.719 kB / 0.959 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.7207, allocations: 1.812 kB / 0.959 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.7208, allocations: 5.969 kB / 0.959 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.7208, allocations: 0.625 kB / 0.959 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7208, allocations: 9.891 kB / 0.959 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.721, allocations: 191.7 kB / 0.9592 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.442e-05/0.721, allocations: 84.45 kB / 0.9593 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.721, allocations: 6.359 kB / 0.9593 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.595e-05/0.7211, allocations: 6.453 kB / 0.9593 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.7211, allocations: 15.06 kB / 0.9593 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.7211, allocations: 8.109 kB / 0.9593 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.639e-05/0.7212, allocations: 107.4 kB / 0.9594 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7212, allocations: 0 / 0.9594 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003095/0.7215, allocations: 76.77 kB / 0.9595 GB, free: 3.012 MB / 0.7169 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) * Number of clocked states: 0 () * 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.0004729/0.722, allocations: 0.8637 MB / 0.9604 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002198/0.7222, allocations: 161.4 kB / 0.9605 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7222, allocations: 3.938 kB / 0.9605 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.081e-05/0.7223, allocations: 47.42 kB / 0.9606 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.7224, allocations: 1.375 kB / 0.9606 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.7235, allocations: 0.9483 MB / 0.9615 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.7236, allocations: 0.7071 MB / 0.9622 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.658e-05/0.7237, allocations: 10.84 kB / 0.9622 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.7237, allocations: 28.45 kB / 0.9622 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.7237, allocations: 0 / 0.9622 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01339/0.7371, allocations: 3.612 MB / 0.9657 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/0.7373, allocations: 187.2 kB / 0.9659 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.522, allocations: 0 / 0.9659 GB, free: 14.67 MB / 0.7325 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