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.004976/0.004976, allocations: 103 kB / 15.74 MB, free: 6.496 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.001426/0.001426, allocations: 192.9 kB / 16.68 MB, free: 6.375 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.408/2.408, allocations: 437.1 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 63.91 kB / 1.018 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2458, allocations: 151.6 MB / 1.166 GB, free: 7.445 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.002274/0.2481, allocations: 1.43 MB / 1.168 GB, free: 5.996 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0005458/0.2487, allocations: 279.1 kB / 1.168 GB, free: 5.723 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.924e-05/0.2487, allocations: 0 / 1.168 GB, free: 5.723 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.2488, allocations: 15.88 kB / 1.168 GB, free: 5.707 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.033e-05/0.2489, allocations: 27.78 kB / 1.168 GB, free: 5.68 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.2492, allocations: 87.83 kB / 1.168 GB, free: 5.594 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.2495, allocations: 228 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.2495, allocations: 13.09 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.01e-05/0.2496, allocations: 87.81 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.2498, allocations: 107.6 kB / 1.168 GB, free: 5.16 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.2498, allocations: 16 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 3.731e-05/0.2498, allocations: 20 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.19e-05/0.2499, allocations: 79.78 kB / 1.168 GB, free: 5.047 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.2501, allocations: 115.3 kB / 1.169 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.2503, allocations: 259.1 kB / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2503, allocations: 0 / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2503, allocations: 0 / 1.169 GB, free: 4.68 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.2503, allocations: 0 / 1.169 GB, free: 4.68 MB / 0.92 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.0008659/0.2512, allocations: 0.7016 MB / 1.17 GB, free: 3.898 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2512, allocations: 12.03 kB / 1.17 GB, free: 3.887 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.624e-05/0.2513, allocations: 46.73 kB / 1.17 GB, free: 3.832 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.2514, allocations: 28.78 kB / 1.17 GB, free: 3.805 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.2517, allocations: 263 kB / 1.17 GB, free: 3.508 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.2517, allocations: 12.66 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.2517, allocations: 24.36 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005547/0.2523, allocations: 463.2 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2523, allocations: 7.875 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.219e-05/0.2523, allocations: 8 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.2523, allocations: 8 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003841/0.2527, allocations: 319.8 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005824/0.2533, allocations: 0.5624 MB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.2545, allocations: 1.034 MB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007316/0.2552, allocations: 0.6609 MB / 1.173 GB, free: 312 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.2553, allocations: 12 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005785/0.2559, allocations: 474.5 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=37): time 1.513e-06/0.2559, allocations: 3.938 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of matching and sorting (n=37): time 0.001405/0.2573, allocations: 1.114 MB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.601e-05/0.2574, allocations: 144.4 kB / 1.175 GB, free: 14.5 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.2576, allocations: 252.9 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.2576, allocations: 37.69 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.847e-05/0.2577, allocations: 125.1 kB / 1.175 GB, free: 14.08 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.125e-05/0.2578, allocations: 79.44 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.258, allocations: 118.1 kB / 1.175 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2581, allocations: 338.8 kB / 1.175 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.2585, allocations: 328.7 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004445/0.2589, allocations: 422.5 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008733/0.2598, allocations: 0.7774 MB / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2598, allocations: 0 / 1.177 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001002/0.2608, allocations: 0.825 MB / 1.178 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2609, allocations: 13.34 kB / 1.178 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.2609, allocations: 8.125 kB / 1.178 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2609, allocations: 7.938 kB / 1.178 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.261, allocations: 44.17 kB / 1.178 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.2611, allocations: 8.5 kB / 1.178 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.2613, allocations: 27.78 kB / 1.178 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/0.2616, allocations: 271.4 kB / 1.178 GB, free: 10.76 MB / 0.9356 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.0001826/0.2618, allocations: 189.7 kB / 1.178 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.2618, allocations: 31.75 kB / 1.178 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.2619, allocations: 38.17 kB / 1.178 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2619, allocations: 12 kB / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2619, allocations: 0 / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2619, allocations: 0 / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.2638, allocations: 1.718 MB / 1.18 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2638, allocations: 0 / 1.18 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.464e-05/0.2638, allocations: 23.91 kB / 1.18 GB, free: 8.68 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2639, allocations: 4 kB / 1.18 GB, free: 8.676 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.279e-05/0.2639, allocations: 23.97 kB / 1.18 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2639, allocations: 4 kB / 1.18 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2639, allocations: 0 / 1.18 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.265, allocations: 1.127 MB / 1.181 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.329e-05/0.265, allocations: 108.9 kB / 1.181 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.605e-05/0.2651, allocations: 12 kB / 1.181 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.2653, allocations: 7.984 kB / 1.181 GB, free: 7.359 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-05/0.2654, allocations: 51.94 kB / 1.181 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002831/0.2657, allocations: 283.4 kB / 1.182 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001379/0.2659, allocations: 168.5 kB / 1.182 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2659, allocations: 0 / 1.182 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004083/0.2663, allocations: 67.98 kB / 1.182 GB, free: 6.801 MB / 0.9356 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.001408/0.2677, allocations: 1.711 MB / 1.184 GB, free: 5.062 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009005/0.2686, allocations: 0.7384 MB / 1.184 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2686, allocations: 0 / 1.184 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005004/0.2691, allocations: 403.8 kB / 1.185 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.2707, allocations: 365.8 kB / 1.185 GB, free: 3.605 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005514/0.2762, allocations: 5.242 MB / 1.19 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.2766, allocations: 0.753 MB / 1.191 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002201/0.2768, allocations: 94.88 kB / 1.191 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.277, allocations: 119.3 kB / 1.191 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of SimCode: time 2.21e-07/0.277, allocations: 0 / 1.191 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.605/2.882, allocations: 11.49 MB / 1.202 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/16.79, allocations: 7.75 kB / 1.202 GB, free: 1.902 MB / 0.9512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_10_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)