Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_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.001072/0.001072, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7055/0.7055, allocations: 132.2 MB / 422.6 MB, free: 1.828 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 68.94 kB / 0.5019 GB, free: 3.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3417, allocations: 80.2 MB / 0.5802 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.002232/0.344, allocations: 1.414 MB / 0.5816 GB, free: 3.594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007218/0.3447, allocations: 0.499 MB / 0.5821 GB, free: 3.254 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.261e-05/0.3448, allocations: 5.531 kB / 0.5821 GB, free: 3.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 6.747e-05/0.3448, allocations: 7.312 kB / 0.5821 GB, free: 3.246 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.917e-05/0.3449, allocations: 8.453 kB / 0.5821 GB, free: 3.242 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006843/0.3456, allocations: 233.2 kB / 0.5823 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.3458, allocations: 144.9 kB / 0.5824 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.539e-05/0.3458, allocations: 5.172 kB / 0.5824 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.476e-05/0.3459, allocations: 61.41 kB / 0.5825 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.526e-05/0.346, allocations: 42.88 kB / 0.5825 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.346, allocations: 11 kB / 0.5825 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002595/0.3463, allocations: 164.2 kB / 0.5827 GB, free: 2.996 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.223e-05/0.3464, allocations: 35.16 kB / 0.5827 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.24e-05/0.3464, allocations: 57.67 kB / 0.5828 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003101/0.3467, allocations: 225.2 kB / 0.583 GB, free: 2.875 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3468, allocations: 0 / 0.583 GB, free: 2.875 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3468, allocations: 0 / 0.583 GB, free: 2.875 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3468, allocations: 0 / 0.583 GB, free: 2.875 MB / 430.1 MB 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.0004574/0.3472, allocations: 459.1 kB / 0.5834 GB, free: 2.445 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.3473, allocations: 10.12 kB / 0.5835 GB, free: 2.445 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.481e-05/0.3473, allocations: 34.03 kB / 0.5835 GB, free: 2.406 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/0.3474, allocations: 17.22 kB / 0.5835 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.3475, allocations: 206.3 kB / 0.5837 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.3475, allocations: 5.594 kB / 0.5837 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.3476, allocations: 13.03 kB / 0.5837 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.3477, allocations: 84.92 kB / 0.5838 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.3477, allocations: 7.938 kB / 0.5838 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.3477, allocations: 1.5 kB / 0.5838 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3477, allocations: 1.219 kB / 0.5838 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.213e-05/0.3478, allocations: 39.81 kB / 0.5838 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.348, allocations: 228.6 kB / 0.5841 GB, free: 1.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.5e-05/0.3481, allocations: 84.52 kB / 0.5841 GB, free: 1.809 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.466e-05/0.3482, allocations: 61.98 kB / 0.5842 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.3482, allocations: 0 / 0.5842 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.3484, allocations: 110.4 kB / 0.5843 GB, free: 1.695 MB / 430.1 MB Notification: Performance of pre-optimization done (n=14): time 1.042e-06/0.3484, allocations: 0 / 0.5843 GB, free: 1.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002932/0.3487, allocations: 186 kB / 0.5845 GB, free: 1.621 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.3487, allocations: 90.72 kB / 0.5846 GB, free: 1.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3488, allocations: 157.4 kB / 0.5847 GB, free: 1.398 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.3488, allocations: 35.75 kB / 0.5848 GB, free: 1.363 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.151e-05/0.3489, allocations: 100.9 kB / 0.5849 GB, free: 1.266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.3489, allocations: 39.86 kB / 0.5849 GB, free: 1.234 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.804e-05/0.349, allocations: 49.14 kB / 0.5849 GB, free: 1.207 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.309e-05/0.3491, allocations: 331.2 kB / 0.5853 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.605e-05/0.3491, allocations: 45.94 kB / 0.5853 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.3493, allocations: 195.6 kB / 0.5855 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.3494, allocations: 101.4 kB / 0.5856 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3494, allocations: 0.7812 kB / 0.5856 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000211/0.3497, allocations: 163.1 kB / 0.5857 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.3497, allocations: 5.188 kB / 0.5857 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.3497, allocations: 3.688 kB / 0.5857 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.3497, allocations: 1.625 kB / 0.5857 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.788e-05/0.3498, allocations: 12.03 kB / 0.5858 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.3498, allocations: 1.953 kB / 0.5858 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.3501, allocations: 80.23 kB / 0.5858 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.3501, allocations: 4.125 kB / 0.5858 GB, free: 0.5508 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.04e-05/0.3502, allocations: 130.6 kB / 0.586 GB, free: 440 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.3502, allocations: 20.75 kB / 0.586 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.551e-05/0.3502, allocations: 14.19 kB / 0.586 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3502, allocations: 1.156 kB / 0.586 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3502, allocations: 1.984 kB / 0.586 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3503, allocations: 0 / 0.586 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.3504, allocations: 201.2 kB / 0.5862 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3504, allocations: 1.656 kB / 0.5862 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.224e-05/0.3504, allocations: 10.48 kB / 0.5862 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3504, allocations: 1.281 kB / 0.5862 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.3504, allocations: 1.969 kB / 0.5862 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3504, allocations: 5.188 kB / 0.5862 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3504, allocations: 1.188 kB / 0.5862 GB, free: 180 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.3506, allocations: 184.9 kB / 0.5864 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/0.3507, allocations: 89.23 kB / 0.5865 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.942e-05/0.3507, allocations: 1.953 kB / 0.5865 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.151e-05/0.3508, allocations: 8.188 kB / 0.5865 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.3508, allocations: 12.94 kB / 0.5865 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.3508, allocations: 3.953 kB / 0.5865 GB, free: 15.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.321e-05/0.3509, allocations: 115.9 kB / 0.5866 GB, free: 15.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3509, allocations: 0 / 0.5866 GB, free: 15.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.3512, allocations: 71.97 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005853/0.3518, allocations: 0.7768 MB / 0.5874 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002416/0.3521, allocations: 171.6 kB / 0.5876 GB, free: 15.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3521, allocations: 0 / 0.5876 GB, free: 15.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 6.803e-05/0.3521, allocations: 51.2 kB / 0.5877 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.3523, allocations: 7.844 kB / 0.5877 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.3539, allocations: 1.697 MB / 0.5893 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.3542, allocations: 0.7018 MB / 0.59 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.04e-05/0.3542, allocations: 8.406 kB / 0.59 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.774e-05/0.3543, allocations: 35.67 kB / 0.59 GB, free: 13 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.3543, allocations: 0 / 0.59 GB, free: 13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.094/2.448, allocations: 3.911 MB / 0.5939 GB, free: 12.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/12.77, allocations: 3.844 kB / 0.5939 GB, free: 12.24 MB / 446.1 MB (rm -f IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)