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.00117/0.00117, allocations: 108 kB / 15.6 MB, free: 132 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.001174/0.001174, allocations: 198 kB / 16.53 MB, free: 6.391 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.622/2.622, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 67.89 kB / 0.8693 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5406/0.5427, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002431/0.5451, allocations: 1.423 MB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005762/0.5457, allocations: 275.2 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.19e-05/0.5458, allocations: 3.938 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.5459, allocations: 11.86 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.285e-05/0.546, allocations: 23.86 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.5463, allocations: 91.77 kB / 1.019 GB, free: 0.6602 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.5465, allocations: 232 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.479e-05/0.5466, allocations: 13.11 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.4e-05/0.5467, allocations: 83.81 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.5468, allocations: 103.7 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.78e-05/0.5469, allocations: 16 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 3.869e-05/0.5469, allocations: 16 kB / 1.02 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.547, allocations: 95.72 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.5471, allocations: 103.4 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002498/0.5474, allocations: 245.5 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.5474, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.323e-06/0.5474, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.5474, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 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.0008888/0.5483, allocations: 0.6958 MB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.5484, allocations: 16.03 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.383e-05/0.5484, allocations: 46.73 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.5485, allocations: 24.66 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.5488, allocations: 270.7 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.5488, allocations: 16.66 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.5489, allocations: 16.38 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005594/0.5494, allocations: 463.2 kB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.5495, allocations: 3.938 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.5495, allocations: 11.98 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.5495, allocations: 4 kB / 1.022 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.5499, allocations: 323.8 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005894/0.5505, allocations: 0.5663 MB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.5517, allocations: 1.027 MB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.5524, allocations: 0.6554 MB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.5525, allocations: 15.92 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005936/0.5531, allocations: 482.3 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=37): time 1.613e-06/0.5531, allocations: 3.938 kB / 1.025 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=37): time 0.00142/0.5545, allocations: 1.103 MB / 1.026 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.5546, allocations: 148.5 kB / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.5548, allocations: 260.9 kB / 1.026 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.5548, allocations: 29.7 kB / 1.026 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.865e-05/0.5549, allocations: 129 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.31e-05/0.555, allocations: 86.92 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.5552, allocations: 110.1 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.5553, allocations: 342.8 kB / 1.027 GB, free: 8.633 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.5557, allocations: 328.7 kB / 1.027 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004359/0.5561, allocations: 422.5 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008532/0.557, allocations: 0.7725 MB / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.557, allocations: 0 / 1.028 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001005/0.558, allocations: 0.8264 MB / 1.029 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.558, allocations: 11.94 kB / 1.029 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.558, allocations: 4 kB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.5581, allocations: 8.125 kB / 1.029 GB, free: 6.195 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.5582, allocations: 43.97 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.345e-05/0.5583, allocations: 11.92 kB / 1.029 GB, free: 6.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.5585, allocations: 27.75 kB / 1.029 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002848/0.5588, allocations: 267.4 kB / 1.029 GB, free: 5.852 MB / 0.7794 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.0001962/0.559, allocations: 186.3 kB / 1.029 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.038e-05/0.5591, allocations: 35.55 kB / 1.03 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.48e-05/0.5591, allocations: 38.12 kB / 1.03 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.5592, allocations: 4 kB / 1.03 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.5592, allocations: 8 kB / 1.03 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5592, allocations: 4.266 kB / 1.03 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.5611, allocations: 1.72 MB / 1.031 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5611, allocations: 0 / 1.031 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.554e-05/0.5612, allocations: 19.92 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.5612, allocations: 11.98 kB / 1.031 GB, free: 3.766 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.5612, allocations: 15.98 kB / 1.031 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5612, allocations: 4 kB / 1.031 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5612, allocations: 0 / 1.031 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.5623, allocations: 1.117 MB / 1.032 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.09e-05/0.5623, allocations: 108.7 kB / 1.032 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.5624, allocations: 8 kB / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.5627, allocations: 7.938 kB / 1.033 GB, free: 2.469 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.5628, allocations: 55.94 kB / 1.033 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/0.5631, allocations: 283.5 kB / 1.033 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001408/0.5632, allocations: 172.5 kB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5633, allocations: 4 kB / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004995/0.5638, allocations: 59.94 kB / 1.033 GB, free: 1.91 MB / 0.7794 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.0014/0.5652, allocations: 1.697 MB / 1.035 GB, free: 188 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009921/0.5662, allocations: 0.7767 MB / 1.035 GB, free: 15.41 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5662, allocations: 0 / 1.035 GB, free: 15.41 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.5667, allocations: 407.8 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.5685, allocations: 375.3 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00545/0.5739, allocations: 5.222 MB / 1.041 GB, free: 9.289 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.5743, allocations: 0.7575 MB / 1.042 GB, free: 8.508 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002982/0.5746, allocations: 90.92 kB / 1.042 GB, free: 8.418 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5748, allocations: 127.3 kB / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of SimCode: time 5.01e-07/0.5748, allocations: 0 / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02994/0.6048, allocations: 11.41 MB / 1.053 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.39/7.994, allocations: 15.38 kB / 1.053 GB, free: 13.05 MB / 0.8106 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)