Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.762/1.762, allocations: 292.3 MB / 308.1 MB, free: 4.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001439/0.001439, allocations: 191.8 kB / 376.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.818/1.818, allocations: 205 MB / 0.6353 GB, free: 9.82 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001186/0.001185, allocations: 97.78 kB / 0.748 GB, free: 61.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 55.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3544, allocations: 114.5 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.DayType): time 0.002742/0.3572, allocations: 0.7685 MB / 0.983 GB, free: 9.629 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0008447/0.3581, allocations: 271.2 kB / 0.9832 GB, free: 9.363 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.3582, allocations: 0 / 0.9832 GB, free: 9.363 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.3585, allocations: 15.86 kB / 0.9833 GB, free: 9.348 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 9.756e-05/0.3586, allocations: 11.94 kB / 0.9833 GB, free: 9.336 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.3593, allocations: 83.84 kB / 0.9833 GB, free: 9.254 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000396/0.3597, allocations: 220 kB / 0.9836 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.895e-05/0.3598, allocations: 5.125 kB / 0.9836 GB, free: 9.035 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.36, allocations: 83.75 kB / 0.9836 GB, free: 8.953 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.3602, allocations: 103.7 kB / 0.9837 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 6.771e-05/0.3603, allocations: 8 kB / 0.9837 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.139e-05/0.3603, allocations: 8 kB / 0.9838 GB, free: 8.836 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3605, allocations: 75.78 kB / 0.9838 GB, free: 8.762 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.3607, allocations: 107.3 kB / 0.9839 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.3612, allocations: 263.1 kB / 0.9842 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.3612, allocations: 4 kB / 0.9842 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of FrontEnd: time 3.076e-06/0.3612, allocations: 0 / 0.9842 GB, free: 8.395 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.3613, allocations: 0 / 0.9842 GB, free: 8.395 MB / 0.7136 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.001633/0.3629, allocations: 0.702 MB / 0.9849 GB, free: 7.613 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.825e-05/0.363, allocations: 12.03 kB / 0.9849 GB, free: 7.602 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.3631, allocations: 32.64 kB / 0.9849 GB, free: 7.57 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005117/0.3637, allocations: 262.7 kB / 0.9852 GB, free: 7.273 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.511e-05/0.3637, allocations: 12.66 kB / 0.9852 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.938e-05/0.3638, allocations: 24.36 kB / 0.9852 GB, free: 7.238 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007895/0.3646, allocations: 463.2 kB / 0.9856 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.3646, allocations: 192 / 0.9856 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.3646, allocations: 7.938 kB / 0.9856 GB, free: 6.762 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3647, allocations: 4 kB / 0.9856 GB, free: 6.758 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005112/0.3652, allocations: 327.8 kB / 0.986 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009519/0.3661, allocations: 0.5662 MB / 0.9865 GB, free: 5.812 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.3677, allocations: 1.029 MB / 0.9875 GB, free: 4.746 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000998/0.3687, allocations: 0.6554 MB / 0.9882 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 5.572e-05/0.3688, allocations: 7.938 kB / 0.9882 GB, free: 4.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009244/0.3697, allocations: 478 kB / 0.9886 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/0.3698, allocations: 0 / 0.9886 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of matching and sorting (n=37): time 0.001921/0.3717, allocations: 1.114 MB / 0.9897 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.3718, allocations: 152.5 kB / 0.9899 GB, free: 2.277 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003718/0.3722, allocations: 244.9 kB / 0.9901 GB, free: 2.031 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.194e-05/0.3723, allocations: 37.7 kB / 0.9901 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.3724, allocations: 129 kB / 0.9902 GB, free: 1.859 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.3726, allocations: 79.14 kB / 0.9903 GB, free: 1.781 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.3728, allocations: 110.1 kB / 0.9904 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0003024/0.3731, allocations: 338.8 kB / 0.9908 GB, free: 1.328 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00047/0.3736, allocations: 332.7 kB / 0.9911 GB, free: 1.004 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.3742, allocations: 426.9 kB / 0.9915 GB, free: 0.5508 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.3753, allocations: 0.7736 MB / 0.9922 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.857e-06/0.3753, allocations: 4 kB / 0.9922 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001209/0.3765, allocations: 0.8248 MB / 0.993 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3766, allocations: 14.28 kB / 0.9931 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3766, allocations: 0 / 0.9931 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.946e-05/0.3767, allocations: 11.94 kB / 0.9931 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.3769, allocations: 39.89 kB / 0.9931 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.483e-05/0.377, allocations: 12 kB / 0.9931 GB, free: 14.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.3773, allocations: 35.69 kB / 0.9932 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004348/0.3778, allocations: 267.5 kB / 0.9934 GB, free: 14.54 MB / 0.7292 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.0003463/0.3782, allocations: 194 kB / 0.9936 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.409e-05/0.3783, allocations: 35.55 kB / 0.9936 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.3784, allocations: 38.17 kB / 0.9937 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.3784, allocations: 4 kB / 0.9937 GB, free: 14.26 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/0.3784, allocations: 4 kB / 0.9937 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.3784, allocations: 0 / 0.9937 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.3812, allocations: 1.706 MB / 0.9953 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.3813, allocations: 4 kB / 0.9953 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.3813, allocations: 23.91 kB / 0.9954 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.225e-05/0.3814, allocations: 4 kB / 0.9954 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.3814, allocations: 27.91 kB / 0.9954 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.021e-06/0.3814, allocations: 4.391 kB / 0.9954 GB, free: 12.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.3814, allocations: 4 kB / 0.9954 GB, free: 12.42 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.3841, allocations: 2.182 MB / 0.9975 GB, free: 10.18 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.3843, allocations: 104.7 kB / 0.9976 GB, free: 10.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.3844, allocations: 11.98 kB / 0.9976 GB, free: 10.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.3846, allocations: 11.94 kB / 0.9977 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.3848, allocations: 47.94 kB / 0.9977 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004243/0.3852, allocations: 283.5 kB / 0.998 GB, free: 9.711 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001908/0.3854, allocations: 172.5 kB / 0.9981 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3854, allocations: 0 / 0.9981 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006251/0.3861, allocations: 64 kB / 0.9982 GB, free: 9.48 MB / 0.7292 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.0002326/0.3863, allocations: 138.2 kB / 0.9983 GB, free: 9.34 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001113/0.3874, allocations: 0.738 MB / 0.999 GB, free: 8.602 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3874, allocations: 0 / 0.999 GB, free: 8.602 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0005842/0.388, allocations: 411.8 kB / 0.9994 GB, free: 8.199 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.3898, allocations: 391.3 kB / 0.9998 GB, free: 7.828 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.3917, allocations: 1.274 MB / 1.001 GB, free: 6.508 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.3922, allocations: 0.7647 MB / 1.002 GB, free: 5.719 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003748/0.3925, allocations: 90.92 kB / 1.002 GB, free: 5.633 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/0.3927, allocations: 67.38 kB / 1.002 GB, free: 5.566 MB / 0.7292 GB Notification: Performance of SimCode: time 6.71e-07/0.3927, allocations: 3.938 kB / 1.002 GB, free: 5.562 MB / 0.7292 GB Notification: Performance of Templates: time 0.01626/0.409, allocations: 8.883 MB / 1.011 GB, free: 12.76 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1)