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.008442/0.008442, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.001751/0.001751, allocations: 190 kB / 16.67 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 2.038/2.038, allocations: 222.9 MB / 240.4 MB, free: 4.297 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 3.644/3.644, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002372/0.002372, allocations: 65.98 kB / 0.9503 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3786, allocations: 140.4 MB / 1.087 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.004365/0.383, allocations: 1.434 MB / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001063/0.3842, allocations: 267.2 kB / 1.089 GB, free: 348 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.124e-05/0.3843, allocations: 7.938 kB / 1.089 GB, free: 340 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.3845, allocations: 11.86 kB / 1.089 GB, free: 328 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.762e-05/0.3846, allocations: 15.88 kB / 1.089 GB, free: 312 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.3852, allocations: 95.75 kB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.3857, allocations: 236 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.3858, allocations: 13.11 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.3859, allocations: 75.83 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.3862, allocations: 107.7 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.071e-05/0.3863, allocations: 16 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.3863, allocations: 16 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001763/0.3865, allocations: 89.16 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.3867, allocations: 107.4 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.3872, allocations: 265.9 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3872, allocations: 3.938 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.364e-06/0.3872, allocations: 0 / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.3872, allocations: 0 / 1.09 GB, free: 15.3 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.001519/0.3888, allocations: 0.6871 MB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 9.19e-05/0.3889, allocations: 12.02 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.332e-05/0.389, allocations: 46.73 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.3891, allocations: 36.56 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.3896, allocations: 258.8 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.3897, allocations: 12.66 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.3897, allocations: 20.36 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.3908, allocations: 463.3 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.3908, allocations: 3.938 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.3909, allocations: 4 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3909, allocations: 4 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000669/0.3916, allocations: 327.7 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.3926, allocations: 0.5625 MB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.3946, allocations: 1.029 MB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.3959, allocations: 0.6593 MB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.529e-05/0.396, allocations: 7.984 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.397, allocations: 486.2 kB / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=37): time 3.396e-06/0.3971, allocations: 0 / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37): time 0.002513/0.3996, allocations: 1.108 MB / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000174/0.3998, allocations: 148.4 kB / 1.096 GB, free: 9.152 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.4003, allocations: 252.8 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.034e-05/0.4004, allocations: 41.69 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.4005, allocations: 125.1 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.4007, allocations: 87.02 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.4009, allocations: 106.1 kB / 1.096 GB, free: 8.527 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002296/0.4012, allocations: 342.8 kB / 1.097 GB, free: 8.184 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006447/0.4018, allocations: 328.7 kB / 1.097 GB, free: 7.863 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007881/0.4026, allocations: 426.5 kB / 1.097 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.4041, allocations: 0.7733 MB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4041, allocations: 0 / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001789/0.4059, allocations: 0.8288 MB / 1.099 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.406, allocations: 7.938 kB / 1.099 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.406, allocations: 4 kB / 1.099 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.4061, allocations: 4 kB / 1.099 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.4064, allocations: 47.98 kB / 1.099 GB, free: 5.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.935e-05/0.4064, allocations: 7.938 kB / 1.099 GB, free: 5.695 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/0.4069, allocations: 35.62 kB / 1.099 GB, free: 5.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006694/0.4075, allocations: 267.5 kB / 1.099 GB, free: 5.398 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.0004069/0.408, allocations: 189.7 kB / 1.1 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.4081, allocations: 31.66 kB / 1.1 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.4082, allocations: 38.17 kB / 1.1 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4082, allocations: 4 kB / 1.1 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4083, allocations: 0 / 1.1 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4083, allocations: 8 kB / 1.1 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003477/0.4118, allocations: 1.713 MB / 1.101 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.4118, allocations: 0 / 1.101 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.671e-05/0.4119, allocations: 23.91 kB / 1.101 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.4119, allocations: 0 / 1.101 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.723e-05/0.412, allocations: 23.97 kB / 1.101 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/0.412, allocations: 4 kB / 1.101 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.412, allocations: 8.062 kB / 1.101 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.4139, allocations: 1.114 MB / 1.102 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.4141, allocations: 108.6 kB / 1.103 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.631e-05/0.4142, allocations: 19.98 kB / 1.103 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.4146, allocations: 8 kB / 1.103 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.4147, allocations: 47.94 kB / 1.103 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003323/0.415, allocations: 283.5 kB / 1.103 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000185/0.4152, allocations: 172.5 kB / 1.103 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4153, allocations: 0 / 1.103 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005974/0.4159, allocations: 67.98 kB / 1.103 GB, free: 1.453 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.001699/0.4176, allocations: 1.701 MB / 1.105 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001441/0.419, allocations: 0.7442 MB / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.419, allocations: 0 / 1.105 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0009023/0.42, allocations: 415.7 kB / 1.106 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003318/0.4233, allocations: 373.6 kB / 1.106 GB, free: 14.24 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.4342, allocations: 5.209 MB / 1.111 GB, free: 8.863 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.4349, allocations: 0.753 MB / 1.112 GB, free: 8.082 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000619/0.4355, allocations: 94.92 kB / 1.112 GB, free: 7.992 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.4359, allocations: 119.3 kB / 1.112 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of SimCode: time 1.382e-06/0.4359, allocations: 3.938 kB / 1.112 GB, free: 7.871 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05516/0.4911, allocations: 11.49 MB / 1.123 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.08, allocations: 10.39 kB / 1.124 GB, free: 12.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)