Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType") translateModel(Buildings.Controls.Sources.Examples.DayType,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001236/0.001236, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001334/0.001334, allocations: 189 kB / 16.25 MB, free: 6.148 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.511/1.511, allocations: 222.9 MB / 239.9 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.246/3.246, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001707, allocations: 64.45 kB / 0.9115 GB, free: 33.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4369/0.4386, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Sources.Examples.DayType): time 0.00276/0.4414, allocations: 1.487 MB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006164/0.4421, allocations: 271.2 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.099e-05/0.4421, allocations: 3.938 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.4423, allocations: 11.92 kB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.4424, allocations: 23.84 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.4427, allocations: 79.42 kB / 1.069 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.443, allocations: 232 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.143e-05/0.4431, allocations: 5.125 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.936e-05/0.4432, allocations: 91.75 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.4433, allocations: 111.7 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.893e-05/0.4434, allocations: 16 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.438e-05/0.4434, allocations: 16 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.4435, allocations: 87.7 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.4436, allocations: 111.4 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.4439, allocations: 243.2 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.4439, allocations: 0 / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.014e-06/0.4439, allocations: 0 / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.4439, allocations: 0 / 1.07 GB, free: 7.996 MB / 0.8262 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.0009882/0.4449, allocations: 0.6943 MB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.445, allocations: 8.031 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.882e-05/0.4451, allocations: 32.56 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002832/0.4453, allocations: 258.9 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.4454, allocations: 16.66 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.4454, allocations: 16.38 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/0.446, allocations: 467.1 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.446, allocations: 4.188 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.583e-05/0.4461, allocations: 19.92 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.4461, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003725/0.4464, allocations: 315.8 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.447, allocations: 0.5702 MB / 1.073 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.4482, allocations: 1.029 MB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007277/0.4489, allocations: 0.6643 MB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.449, allocations: 4 kB / 1.074 GB, free: 3.672 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000626/0.4496, allocations: 488.1 kB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.4496, allocations: 3.938 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.001418/0.451, allocations: 1.111 MB / 1.076 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.978e-05/0.4511, allocations: 136.5 kB / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.4514, allocations: 256.8 kB / 1.076 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.4514, allocations: 33.7 kB / 1.076 GB, free: 1.59 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.4515, allocations: 125.1 kB / 1.076 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.363e-05/0.4516, allocations: 83.14 kB / 1.077 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.4518, allocations: 110.1 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.4519, allocations: 338.8 kB / 1.077 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003985/0.4523, allocations: 332.7 kB / 1.077 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000456/0.4528, allocations: 422.5 kB / 1.078 GB, free: 160 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008856/0.4537, allocations: 0.7698 MB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4537, allocations: 0.5 kB / 1.078 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001026/0.4547, allocations: 0.8327 MB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.4548, allocations: 7.938 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.4548, allocations: 8 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.4548, allocations: 7.938 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.455, allocations: 47.83 kB / 1.079 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.455, allocations: 4 kB / 1.079 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.4553, allocations: 31.62 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003227/0.4556, allocations: 271.8 kB / 1.08 GB, free: 14.14 MB / 0.8419 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.0002143/0.4558, allocations: 177.8 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.4559, allocations: 39.92 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.038e-05/0.456, allocations: 42.12 kB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.456, allocations: 7.984 kB / 1.08 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.456, allocations: 7.984 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.456, allocations: 4 kB / 1.08 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.458, allocations: 1.712 MB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.458, allocations: 4 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-05/0.458, allocations: 27.91 kB / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4581, allocations: 0 / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.076e-05/0.4581, allocations: 15.98 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.4581, allocations: 7.984 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4581, allocations: 0 / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.4592, allocations: 1.125 MB / 1.083 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.228e-05/0.4593, allocations: 100.8 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.4593, allocations: 8 kB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4596, allocations: 11.98 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.4597, allocations: 47.95 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003051/0.46, allocations: 283.5 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001591/0.4602, allocations: 176.4 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.1e-07/0.4602, allocations: 4 kB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004556/0.4606, allocations: 60 kB / 1.083 GB, free: 10.19 MB / 0.8419 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.0001901/0.4608, allocations: 127.2 kB / 1.083 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009984/0.4619, allocations: 0.7881 MB / 1.084 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4619, allocations: 0 / 1.084 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005227/0.4624, allocations: 404.9 kB / 1.085 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.4641, allocations: 368.7 kB / 1.085 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.4655, allocations: 1.041 MB / 1.086 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003895/0.4659, allocations: 0.7491 MB / 1.087 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002737/0.4662, allocations: 98.91 kB / 1.087 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.4663, allocations: 67.39 kB / 1.087 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of SimCode: time 4.2e-07/0.4663, allocations: 0 / 1.087 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of Templates: time 0.01562/0.482, allocations: 8.769 MB / 1.095 GB, free: 13.86 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.sim & ./Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1)