Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Sources.Examples.DayType.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Sources.Examples.DayType,fileNamePrefix="Buildings_10_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_10_Buildings_Controls_Sources_Examples_DayType",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.005653/0.005653, allocations: 97.69 kB / 15.73 MB, free: 5.961 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.002035/0.002035, allocations: 195.5 kB / 16.67 MB, free: 5.883 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.557/1.557, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.558/2.558, allocations: 437.1 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 55.91 kB / 1.018 GB, free: 9.961 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7408/0.7427, allocations: 151.6 MB / 1.166 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002471/0.7452, allocations: 1.434 MB / 1.168 GB, free: 2.367 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006723/0.7459, allocations: 277.6 kB / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.02e-05/0.746, allocations: 0 / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.7461, allocations: 15.86 kB / 1.168 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.124e-05/0.7462, allocations: 15.81 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.7465, allocations: 97.45 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.7468, allocations: 239.9 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.457e-05/0.7469, allocations: 5.125 kB / 1.168 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.788e-05/0.747, allocations: 87.81 kB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.7471, allocations: 103.7 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.7472, allocations: 16 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.79e-05/0.7472, allocations: 16 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.7473, allocations: 79.73 kB / 1.168 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.7475, allocations: 107.4 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.7478, allocations: 258.6 kB / 1.169 GB, free: 1.074 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.7478, allocations: 4 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7478, allocations: 0 / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.7478, allocations: 0 / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0009992/0.7488, allocations: 0.7055 MB / 1.169 GB, free: 292 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.7488, allocations: 12.92 kB / 1.169 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.604e-05/0.7489, allocations: 46.73 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.034e-05/0.749, allocations: 24.8 kB / 1.17 GB, free: 200 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.7493, allocations: 270.9 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.7494, allocations: 20.62 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/0.7494, allocations: 16.38 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006567/0.7501, allocations: 463.8 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.7501, allocations: 3.938 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.7501, allocations: 4 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.7501, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.7506, allocations: 335.8 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.7513, allocations: 0.5586 MB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.7526, allocations: 1.029 MB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008256/0.7534, allocations: 0.6617 MB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.7535, allocations: 11.98 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000665/0.7541, allocations: 476 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.7542, allocations: 0 / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of matching and sorting (n=37): time 0.001596/0.7558, allocations: 1.11 MB / 1.174 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/0.7559, allocations: 144.5 kB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.7561, allocations: 256.9 kB / 1.175 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.7562, allocations: 41.64 kB / 1.175 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.914e-05/0.7563, allocations: 129.1 kB / 1.175 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.7564, allocations: 79.47 kB / 1.175 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.7565, allocations: 114.1 kB / 1.175 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7567, allocations: 342.8 kB / 1.175 GB, free: 9.934 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004309/0.7571, allocations: 328.7 kB / 1.176 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/0.7577, allocations: 422.5 kB / 1.176 GB, free: 9.164 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009733/0.7586, allocations: 0.7739 MB / 1.177 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.7587, allocations: 0 / 1.177 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0011/0.7598, allocations: 0.8255 MB / 1.178 GB, free: 7.523 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.7598, allocations: 11.94 kB / 1.178 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.7598, allocations: 7.984 kB / 1.178 GB, free: 7.504 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.7598, allocations: 4 kB / 1.178 GB, free: 7.5 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.76, allocations: 43.91 kB / 1.178 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.76, allocations: 12.38 kB / 1.178 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.7603, allocations: 31.83 kB / 1.178 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003124/0.7606, allocations: 259.4 kB / 1.178 GB, free: 7.16 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 (dayTypMonThr.skipIDayIncrement,$PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.iDay,$PRE.dayTypMonThr.iDay,dayTypMonThr.y[3],dayTypMonThr.y[2],dayTypMonThr.y[1],dayTypTwoWeeks.skipIDayIncrement,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.iDay,$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.y[14],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[1],dayTypSat.skipIDayIncrement,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.iDay,$PRE.dayTypSat.iDay,dayTypSat.y[2],dayTypSat.y[1],dayTypMon.skipIDayIncrement,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.iDay,$PRE.dayTypMon.iDay,dayTypMon.y[2],dayTypMon.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.000213/0.7608, allocations: 197.9 kB / 1.178 GB, free: 6.957 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.372e-05/0.7609, allocations: 31.75 kB / 1.178 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.898e-05/0.7609, allocations: 38.17 kB / 1.178 GB, free: 6.887 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.761, allocations: 4 kB / 1.178 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.761, allocations: 7.938 kB / 1.178 GB, free: 6.875 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.761, allocations: 0 / 1.178 GB, free: 6.875 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.7631, allocations: 1.725 MB / 1.18 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.7631, allocations: 4 kB / 1.18 GB, free: 5.09 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.889e-05/0.7632, allocations: 19.91 kB / 1.18 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.7632, allocations: 4 kB / 1.18 GB, free: 5.066 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.7632, allocations: 23.97 kB / 1.18 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.7632, allocations: 0 / 1.18 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7632, allocations: 4 kB / 1.18 GB, free: 5.039 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.7644, allocations: 1.122 MB / 1.181 GB, free: 3.898 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.701e-05/0.7645, allocations: 108.9 kB / 1.181 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.7646, allocations: 15.98 kB / 1.181 GB, free: 3.758 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.7648, allocations: 8 kB / 1.181 GB, free: 3.75 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.765, allocations: 51.94 kB / 1.181 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/0.7653, allocations: 283.5 kB / 1.182 GB, free: 3.422 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001612/0.7655, allocations: 172.5 kB / 1.182 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7655, allocations: 0 / 1.182 GB, free: 3.254 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004751/0.7659, allocations: 64 kB / 1.182 GB, free: 3.191 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001603/0.7676, allocations: 1.704 MB / 1.183 GB, free: 1.461 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.7686, allocations: 0.7422 MB / 1.184 GB, free: 0.7148 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.7686, allocations: 4.25 kB / 1.184 GB, free: 0.7109 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005502/0.7692, allocations: 407.6 kB / 1.185 GB, free: 320 kB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/0.7709, allocations: 365.3 kB / 1.185 GB, free: 15.99 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005938/0.7769, allocations: 5.246 MB / 1.19 GB, free: 10.58 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.7773, allocations: 0.753 MB / 1.191 GB, free: 9.801 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002897/0.7776, allocations: 94.92 kB / 1.191 GB, free: 9.703 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.7778, allocations: 123.3 kB / 1.191 GB, free: 9.582 MB / 0.92 GB Notification: Performance of SimCode: time 2.9e-07/0.7778, allocations: 0 / 1.191 GB, free: 9.582 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.8138, allocations: 11.5 MB / 1.202 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.484/9.298, allocations: 2.531 kB / 1.202 GB, free: 14.27 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_10_Buildings.Controls.Sources.Examples.DayType.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.Sources.Examples.DayType_res.csv --start-time -1.8144e+06 --stop-time 1.8144e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1451.52 Buildings_10_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)