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.007696/0.007696, allocations: 99.05 kB / 15.73 MB, free: 6.055 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.002016/0.002016, allocations: 201 kB / 16.68 MB, free: 5.977 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.417/2.417, allocations: 390.3 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 61.97 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2561, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002616/0.2588, allocations: 1.434 MB / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006463/0.2594, allocations: 271.1 kB / 1.089 GB, free: 316 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.127e-05/0.2595, allocations: 7.938 kB / 1.089 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.2597, allocations: 7.875 kB / 1.089 GB, free: 300 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.68e-05/0.2598, allocations: 27.78 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.2601, allocations: 87.83 kB / 1.089 GB, free: 184 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.2604, allocations: 232 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.195e-05/0.2605, allocations: 9.125 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.931e-05/0.2606, allocations: 83.81 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.2608, allocations: 103.7 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.2608, allocations: 16 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 3.357e-05/0.2609, allocations: 16 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.261, allocations: 93.14 kB / 1.09 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.2611, allocations: 107.4 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.2614, allocations: 259.1 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2614, allocations: 4 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2614, allocations: 3.938 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.044e-05/0.2614, allocations: 4 kB / 1.09 GB, free: 15.27 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.0009799/0.2624, allocations: 0.6939 MB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2625, allocations: 11.97 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.2625, allocations: 50.73 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.665e-05/0.2626, allocations: 28.75 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.263, allocations: 263 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.263, allocations: 16.66 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.772e-05/0.263, allocations: 16.38 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005768/0.2636, allocations: 463.2 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2636, allocations: 7.938 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.2637, allocations: 4 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.2637, allocations: 4 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003856/0.2641, allocations: 319.8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006107/0.2647, allocations: 0.5702 MB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.2659, allocations: 1.03 MB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007678/0.2667, allocations: 0.6671 MB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.2667, allocations: 4 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006673/0.2674, allocations: 486.3 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/0.2674, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37): time 0.001543/0.2689, allocations: 1.112 MB / 1.096 GB, free: 9.273 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.282e-05/0.269, allocations: 144.4 kB / 1.096 GB, free: 9.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.2693, allocations: 256.9 kB / 1.096 GB, free: 8.844 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.2694, allocations: 37.7 kB / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.2695, allocations: 121.1 kB / 1.096 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/0.2696, allocations: 87.52 kB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.2697, allocations: 106.1 kB / 1.096 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002181/0.27, allocations: 338.8 kB / 1.097 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.2704, allocations: 337.1 kB / 1.097 GB, free: 7.812 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.2708, allocations: 426.5 kB / 1.097 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.2717, allocations: 0.7734 MB / 1.098 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2717, allocations: 0 / 1.098 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001063/0.2728, allocations: 0.829 MB / 1.099 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.2728, allocations: 7.938 kB / 1.099 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.2728, allocations: 4 kB / 1.099 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2729, allocations: 4 kB / 1.099 GB, free: 5.699 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.2731, allocations: 43.89 kB / 1.099 GB, free: 5.656 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.2731, allocations: 12 kB / 1.099 GB, free: 5.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.2734, allocations: 31.78 kB / 1.099 GB, free: 5.613 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.2737, allocations: 271.4 kB / 1.099 GB, free: 5.348 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.0002537/0.2739, allocations: 189.7 kB / 1.1 GB, free: 5.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.274, allocations: 35.75 kB / 1.1 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.813e-05/0.2741, allocations: 34.19 kB / 1.1 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.2741, allocations: 7.984 kB / 1.1 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-06/0.2741, allocations: 0 / 1.1 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.2741, allocations: 4 kB / 1.1 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.2762, allocations: 1.715 MB / 1.101 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2762, allocations: 0 / 1.101 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.414e-05/0.2763, allocations: 27.91 kB / 1.101 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.2763, allocations: 3.984 kB / 1.101 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.2763, allocations: 15.98 kB / 1.101 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-06/0.2763, allocations: 7.984 kB / 1.101 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2764, allocations: 0 / 1.101 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2774, allocations: 1.126 MB / 1.102 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.017e-05/0.2775, allocations: 104.9 kB / 1.103 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.2776, allocations: 8 kB / 1.103 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/0.2779, allocations: 15.98 kB / 1.103 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.278, allocations: 51.94 kB / 1.103 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/0.2783, allocations: 283.5 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001664/0.2785, allocations: 172.5 kB / 1.103 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2785, allocations: 0 / 1.103 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005654/0.2791, allocations: 60 kB / 1.103 GB, free: 1.402 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.001537/0.2806, allocations: 1.708 MB / 1.105 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.2817, allocations: 0.7412 MB / 1.106 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2817, allocations: 4.25 kB / 1.106 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.2822, allocations: 407.7 kB / 1.106 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.2841, allocations: 381.7 kB / 1.106 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005776/0.2899, allocations: 5.213 MB / 1.111 GB, free: 8.805 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.2903, allocations: 0.7569 MB / 1.112 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003542/0.2907, allocations: 86.92 kB / 1.112 GB, free: 7.938 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.2909, allocations: 131.3 kB / 1.112 GB, free: 7.809 MB / 0.8731 GB Notification: Performance of SimCode: time 6.41e-07/0.2909, allocations: 0 / 1.112 GB, free: 7.809 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03031/0.3212, allocations: 11.48 MB / 1.124 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.594/7.915, allocations: 8 kB / 1.124 GB, free: 12.51 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)