Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Sources.Examples.DayType") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001954/0.001954, allocations: 197 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.644/1.644, allocations: 205.1 MB / 222 MB, free: 5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.847/1.847, allocations: 292.2 MB / 0.5484 GB, free: 13.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001428, allocations: 62.72 kB / 0.6708 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2899, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.003701/0.2936, allocations: 1.488 MB / 0.7841 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.2944, allocations: 276.2 kB / 0.7844 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.973e-05/0.2945, allocations: 4 kB / 0.7844 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.2947, allocations: 11.92 kB / 0.7844 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.796e-05/0.2948, allocations: 19.84 kB / 0.7844 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.2953, allocations: 79.88 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002806/0.2955, allocations: 216 kB / 0.7847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.456e-05/0.2956, allocations: 9.125 kB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.2957, allocations: 75.81 kB / 0.7848 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.2959, allocations: 107.6 kB / 0.7849 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.2959, allocations: 12 kB / 0.7849 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 3.512e-05/0.296, allocations: 8 kB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.2961, allocations: 75.78 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.2962, allocations: 103.3 kB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.2965, allocations: 239.4 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2965, allocations: 0 / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.92e-07/0.2965, allocations: 0 / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.2965, allocations: 0 / 0.7853 GB, free: 11.31 MB / 0.6075 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.001253/0.2978, allocations: 0.6979 MB / 0.786 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.2979, allocations: 8.031 kB / 0.786 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.347e-05/0.298, allocations: 24.66 kB / 0.786 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.2983, allocations: 266.8 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.2984, allocations: 16.66 kB / 0.7863 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.2984, allocations: 16.38 kB / 0.7863 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.299, allocations: 463.2 kB / 0.7867 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.2991, allocations: 192 / 0.7867 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.2991, allocations: 11.92 kB / 0.7867 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.2991, allocations: 8 kB / 0.7868 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000468/0.2996, allocations: 319.8 kB / 0.7871 GB, free: 9.363 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/0.3002, allocations: 0.5701 MB / 0.7876 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3015, allocations: 1.033 MB / 0.7886 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000769/0.3022, allocations: 0.6584 MB / 0.7893 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.3023, allocations: 4 kB / 0.7893 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000686/0.303, allocations: 482.2 kB / 0.7897 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.303, allocations: 0 / 0.7897 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=37): time 0.001588/0.3046, allocations: 1.125 MB / 0.7908 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.3047, allocations: 140.5 kB / 0.791 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.305, allocations: 248.9 kB / 0.7912 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.3051, allocations: 33.7 kB / 0.7912 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.3052, allocations: 129.1 kB / 0.7914 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.842e-05/0.3053, allocations: 79.14 kB / 0.7914 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.3054, allocations: 114.1 kB / 0.7915 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3056, allocations: 338.8 kB / 0.7919 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.3061, allocations: 328.8 kB / 0.7922 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.3066, allocations: 434.4 kB / 0.7926 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000925/0.3075, allocations: 0.7712 MB / 0.7933 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.3075, allocations: 0 / 0.7933 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001126/0.3086, allocations: 0.8209 MB / 0.7941 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3087, allocations: 11.94 kB / 0.7942 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.3087, allocations: 8.203 kB / 0.7942 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.3087, allocations: 7.938 kB / 0.7942 GB, free: 1.801 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.3089, allocations: 39.89 kB / 0.7942 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.3089, allocations: 11.98 kB / 0.7942 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.3092, allocations: 27.69 kB / 0.7942 GB, free: 1.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003229/0.3096, allocations: 275.5 kB / 0.7945 GB, free: 1.453 MB / 0.6075 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.0002801/0.3098, allocations: 186 kB / 0.7947 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.3099, allocations: 39.55 kB / 0.7947 GB, free: 1.223 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.693e-05/0.31, allocations: 34.19 kB / 0.7948 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.31, allocations: 8 kB / 0.7948 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.31, allocations: 7.984 kB / 0.7948 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.31, allocations: 0 / 0.7948 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.3123, allocations: 1.698 MB / 0.7964 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3123, allocations: 4 kB / 0.7964 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.3123, allocations: 27.91 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.3124, allocations: 4 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.405e-05/0.3124, allocations: 15.98 kB / 0.7965 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.3124, allocations: 7.984 kB / 0.7965 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.3124, allocations: 3.938 kB / 0.7965 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3137, allocations: 1.125 MB / 0.7976 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3138, allocations: 108.7 kB / 0.7977 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.712e-05/0.3139, allocations: 8 kB / 0.7977 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.3141, allocations: 12.11 kB / 0.7977 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3143, allocations: 51.94 kB / 0.7978 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003175/0.3146, allocations: 275.4 kB / 0.798 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001823/0.3148, allocations: 176.4 kB / 0.7982 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3148, allocations: 3.938 kB / 0.7982 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005278/0.3153, allocations: 68 kB / 0.7983 GB, free: 13.5 MB / 0.6231 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.0001885/0.3155, allocations: 139 kB / 0.7984 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001049/0.3166, allocations: 0.7369 MB / 0.7991 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3166, allocations: 3.938 kB / 0.7991 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005567/0.3172, allocations: 399.8 kB / 0.7995 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.3188, allocations: 338.6 kB / 0.7998 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001552/0.3204, allocations: 1.027 MB / 0.8008 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.3209, allocations: 0.7646 MB / 0.8016 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003995/0.3213, allocations: 95.47 kB / 0.8017 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.3215, allocations: 67.38 kB / 0.8017 GB, free: 9.898 MB / 0.6231 GB Notification: Performance of SimCode: time 6.91e-07/0.3215, allocations: 0 / 0.8017 GB, free: 9.898 MB / 0.6231 GB Notification: Performance of Templates: time 0.01504/0.3365, allocations: 8.478 MB / 0.81 GB, free: 1.527 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_8_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_8_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)