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.007274/0.007274, allocations: 99.44 kB / 15.73 MB, free: 6.008 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.001698/0.001698, allocations: 192.3 kB / 16.67 MB, free: 5.926 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.49/2.49, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001619, allocations: 55.91 kB / 1.018 GB, free: 9.945 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7004/0.7021, allocations: 151.6 MB / 1.166 GB, free: 3.906 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002424/0.7045, allocations: 1.431 MB / 1.168 GB, free: 2.465 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0006272/0.7052, allocations: 277.7 kB / 1.168 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.486e-05/0.7053, allocations: 7.938 kB / 1.168 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.7054, allocations: 7.875 kB / 1.168 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.672e-05/0.7055, allocations: 23.84 kB / 1.168 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.7058, allocations: 87.78 kB / 1.168 GB, free: 2.07 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002631/0.7061, allocations: 232 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.839e-05/0.7061, allocations: 9.125 kB / 1.168 GB, free: 1.828 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.939e-05/0.7062, allocations: 87.81 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.7064, allocations: 103.7 kB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.694e-05/0.7064, allocations: 16 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.1e-05/0.7065, allocations: 16 kB / 1.168 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.7066, allocations: 87.78 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.7067, allocations: 111.3 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.707, allocations: 250.6 kB / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.707, allocations: 0 / 1.169 GB, free: 1.172 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.715e-06/0.707, allocations: 4 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.707, allocations: 0 / 1.169 GB, free: 1.168 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.0008987/0.7079, allocations: 0.7093 MB / 1.169 GB, free: 388 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.7079, allocations: 8.625 kB / 1.169 GB, free: 380 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.545e-05/0.708, allocations: 50.73 kB / 1.17 GB, free: 320 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.7081, allocations: 24.8 kB / 1.17 GB, free: 296 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.7084, allocations: 266.9 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.7084, allocations: 16.66 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.7085, allocations: 24.36 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.709, allocations: 463.8 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.7091, allocations: 3.938 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.7091, allocations: 4 kB / 1.17 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.7091, allocations: 4 kB / 1.17 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003822/0.7095, allocations: 319.8 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006203/0.7101, allocations: 0.5703 MB / 1.171 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.7113, allocations: 1.037 MB / 1.172 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007221/0.712, allocations: 0.6575 MB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.7121, allocations: 11.94 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006166/0.7127, allocations: 480 kB / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=37): time 1.813e-06/0.7127, allocations: 0 / 1.173 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=37): time 0.001453/0.7142, allocations: 1.112 MB / 1.174 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.7142, allocations: 140.5 kB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002353/0.7145, allocations: 252.9 kB / 1.175 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.7145, allocations: 33.7 kB / 1.175 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.537e-05/0.7146, allocations: 129 kB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.842e-05/0.7147, allocations: 91.52 kB / 1.175 GB, free: 10.48 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.7148, allocations: 114 kB / 1.175 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.715, allocations: 338.8 kB / 1.175 GB, free: 10.03 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.7153, allocations: 332.7 kB / 1.176 GB, free: 9.699 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004261/0.7158, allocations: 426.5 kB / 1.176 GB, free: 9.25 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.7166, allocations: 0.7634 MB / 1.177 GB, free: 8.449 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.7166, allocations: 4 kB / 1.177 GB, free: 8.445 MB / 0.9044 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001053/0.7177, allocations: 0.8321 MB / 1.178 GB, free: 7.609 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.7177, allocations: 7.938 kB / 1.178 GB, free: 7.602 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.7177, allocations: 4 kB / 1.178 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.7177, allocations: 4 kB / 1.178 GB, free: 7.594 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.7179, allocations: 44.45 kB / 1.178 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.718, allocations: 7.938 kB / 1.178 GB, free: 7.543 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.7182, allocations: 23.84 kB / 1.178 GB, free: 7.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.7185, allocations: 275.5 kB / 1.178 GB, free: 7.25 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.000211/0.7188, allocations: 193.7 kB / 1.178 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.7188, allocations: 36.03 kB / 1.178 GB, free: 7.016 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.206e-05/0.7189, allocations: 38.17 kB / 1.178 GB, free: 6.977 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.7189, allocations: 7.984 kB / 1.178 GB, free: 6.969 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.7189, allocations: 3.938 kB / 1.178 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.7189, allocations: 4 kB / 1.178 GB, free: 6.961 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.7209, allocations: 1.718 MB / 1.18 GB, free: 5.184 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.7209, allocations: 0 / 1.18 GB, free: 5.184 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-05/0.721, allocations: 27.91 kB / 1.18 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.721, allocations: 0 / 1.18 GB, free: 5.156 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.721, allocations: 15.98 kB / 1.18 GB, free: 5.141 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.721, allocations: 7.984 kB / 1.18 GB, free: 5.133 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.721, allocations: 0 / 1.18 GB, free: 5.133 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.7221, allocations: 1.132 MB / 1.181 GB, free: 3.984 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.811e-05/0.7221, allocations: 104.9 kB / 1.181 GB, free: 3.863 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.7222, allocations: 8 kB / 1.181 GB, free: 3.855 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.7225, allocations: 11.98 kB / 1.181 GB, free: 3.844 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.7226, allocations: 51.94 kB / 1.181 GB, free: 3.793 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002968/0.7229, allocations: 283.4 kB / 1.182 GB, free: 3.516 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001544/0.7231, allocations: 176.5 kB / 1.182 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7231, allocations: 0 / 1.182 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005223/0.7236, allocations: 60 kB / 1.182 GB, free: 3.285 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.001412/0.725, allocations: 1.704 MB / 1.183 GB, free: 1.555 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009657/0.726, allocations: 0.7345 MB / 1.184 GB, free: 0.8203 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.726, allocations: 0 / 1.184 GB, free: 0.8203 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.7265, allocations: 403.8 kB / 1.185 GB, free: 432 kB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.7283, allocations: 379.1 kB / 1.185 GB, free: 88 kB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005244/0.7335, allocations: 5.232 MB / 1.19 GB, free: 10.68 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.7339, allocations: 0.7648 MB / 1.191 GB, free: 9.895 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0003089/0.7342, allocations: 94.92 kB / 1.191 GB, free: 9.797 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.7344, allocations: 123.3 kB / 1.191 GB, free: 9.676 MB / 0.92 GB Notification: Performance of SimCode: time 7.11e-07/0.7344, allocations: 0 / 1.191 GB, free: 9.676 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.762, allocations: 11.51 MB / 1.202 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.508, allocations: 4.062 kB / 1.202 GB, free: 14.36 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)