Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Sources.Examples.DayType,fileNamePrefix="Buildings_9_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_9_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.009678/0.009678, allocations: 100.8 kB / 15.73 MB, free: 5.988 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.002036/0.002036, allocations: 197 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 62.88 kB / 0.9503 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.247, allocations: 140.4 MB / 1.087 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003025/0.2501, allocations: 1.431 MB / 1.089 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007118/0.2508, allocations: 283.1 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.308e-05/0.2509, allocations: 0 / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.2511, allocations: 7.875 kB / 1.089 GB, free: 360 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.768e-05/0.2512, allocations: 23.8 kB / 1.089 GB, free: 336 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.2516, allocations: 79.84 kB / 1.089 GB, free: 256 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.2519, allocations: 235.9 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.24e-05/0.2519, allocations: 13.12 kB / 1.089 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.252, allocations: 83.81 kB / 1.09 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.2522, allocations: 103.7 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.2523, allocations: 20 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 3.398e-05/0.2523, allocations: 16 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.2524, allocations: 89.14 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.2525, allocations: 103.4 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.2528, allocations: 261.9 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2528, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.846e-06/0.2528, allocations: 0 / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.2529, allocations: 7.938 kB / 1.09 GB, free: 15.34 MB / 0.8575 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.001038/0.2539, allocations: 0.6871 MB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.254, allocations: 8.031 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.586e-05/0.254, allocations: 54.67 kB / 1.091 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.598e-05/0.2541, allocations: 28.56 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.2545, allocations: 262.8 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.2545, allocations: 16.66 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.96e-05/0.2546, allocations: 20.38 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005721/0.2552, allocations: 463.3 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2552, allocations: 3.938 kB / 1.092 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.2552, allocations: 11.97 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.2552, allocations: 4 kB / 1.092 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.2556, allocations: 327.7 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006128/0.2562, allocations: 0.5585 MB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2574, allocations: 1.031 MB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007162/0.2581, allocations: 0.6593 MB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2582, allocations: 11.97 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000647/0.2588, allocations: 486.2 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=37): time 2.324e-06/0.2588, allocations: 0 / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37): time 0.001449/0.2603, allocations: 1.102 MB / 1.096 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.2604, allocations: 144.5 kB / 1.096 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.2606, allocations: 252.8 kB / 1.096 GB, free: 8.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.949e-05/0.2607, allocations: 45.64 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.137e-05/0.2608, allocations: 125.1 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.663e-05/0.2609, allocations: 83.12 kB / 1.096 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.261, allocations: 106.1 kB / 1.096 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2611, allocations: 346.8 kB / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004258/0.2616, allocations: 328.7 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004241/0.262, allocations: 422.5 kB / 1.097 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008578/0.2629, allocations: 0.7735 MB / 1.098 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.2629, allocations: 4 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001007/0.2639, allocations: 0.832 MB / 1.099 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.2639, allocations: 11.94 kB / 1.099 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2639, allocations: 0 / 1.099 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.264, allocations: 8 kB / 1.099 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.2641, allocations: 39.84 kB / 1.099 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.2642, allocations: 7.984 kB / 1.099 GB, free: 5.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.2644, allocations: 35.75 kB / 1.099 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002838/0.2647, allocations: 267.4 kB / 1.099 GB, free: 5.43 MB / 0.8575 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.0002142/0.2649, allocations: 194 kB / 1.1 GB, free: 5.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.265, allocations: 31.7 kB / 1.1 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.957e-05/0.2651, allocations: 38.19 kB / 1.1 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2651, allocations: 4 kB / 1.1 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.2651, allocations: 4 kB / 1.1 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.2651, allocations: 3.984 kB / 1.1 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.2672, allocations: 1.711 MB / 1.101 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.2672, allocations: 0 / 1.101 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.601e-05/0.2672, allocations: 23.92 kB / 1.101 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.2673, allocations: 7.984 kB / 1.101 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.2673, allocations: 15.98 kB / 1.101 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.2673, allocations: 0 / 1.101 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2673, allocations: 4 kB / 1.101 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.2684, allocations: 1.122 MB / 1.102 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.581e-05/0.2685, allocations: 104.7 kB / 1.103 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.2685, allocations: 12 kB / 1.103 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002615/0.2688, allocations: 4 kB / 1.103 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2689, allocations: 55.94 kB / 1.103 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002873/0.2692, allocations: 287.5 kB / 1.103 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001546/0.2694, allocations: 172.5 kB / 1.103 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2694, allocations: 0 / 1.103 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005021/0.2699, allocations: 60 kB / 1.103 GB, free: 1.492 MB / 0.8575 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.001571/0.2715, allocations: 1.708 MB / 1.105 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.2725, allocations: 0.7417 MB / 1.105 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2725, allocations: 4 kB / 1.105 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005429/0.2731, allocations: 411.9 kB / 1.106 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.2748, allocations: 380.2 kB / 1.106 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0055/0.2803, allocations: 5.209 MB / 1.111 GB, free: 8.895 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.2807, allocations: 0.753 MB / 1.112 GB, free: 8.113 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003094/0.281, allocations: 94.92 kB / 1.112 GB, free: 8.023 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.2812, allocations: 123.3 kB / 1.112 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of SimCode: time 7.21e-07/0.2812, allocations: 0 / 1.112 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.3134, allocations: 11.48 MB / 1.123 GB, free: 12.6 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.874/8.188, allocations: 12.08 kB / 1.124 GB, free: 12.59 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)