Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007879/0.007878, allocations: 108.3 kB / 15.74 MB, free: 6.055 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.001146/0.001146, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.575/1.575, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6142/0.6142, allocations: 95.48 MB / 365.4 MB, free: 9.762 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 79.89 kB / 0.5036 GB, free: 13.47 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1956, allocations: 69.09 MB / 0.5711 GB, free: 8.324 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.005962/0.2016, allocations: 3.123 MB / 0.5741 GB, free: 5.176 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003099/0.2048, allocations: 1.033 MB / 0.5751 GB, free: 4.133 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007696/0.2056, allocations: 19.88 kB / 0.5751 GB, free: 4.113 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004094/0.2061, allocations: 75.19 kB / 0.5752 GB, free: 4.039 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003931/0.2065, allocations: 95.11 kB / 0.5753 GB, free: 3.945 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009544/0.2074, allocations: 239.7 kB / 0.5755 GB, free: 3.711 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000765/0.2082, allocations: 0.5544 MB / 0.5761 GB, free: 3.152 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005868/0.2088, allocations: 255.5 kB / 0.5763 GB, free: 2.895 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.2091, allocations: 207.1 kB / 0.5765 GB, free: 2.691 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003069/0.2094, allocations: 210.8 kB / 0.5767 GB, free: 2.484 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.109e-05/0.2095, allocations: 59.94 kB / 0.5768 GB, free: 2.426 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.845e-05/0.2096, allocations: 56 kB / 0.5768 GB, free: 2.371 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.2098, allocations: 127.5 kB / 0.577 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000265/0.2101, allocations: 242.6 kB / 0.5772 GB, free: 2.008 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007947/0.2109, allocations: 0.5995 MB / 0.5778 GB, free: 1.406 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.2109, allocations: 0 / 0.5778 GB, free: 1.406 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2109, allocations: 0 / 0.5778 GB, free: 1.406 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.2109, allocations: 4 kB / 0.5778 GB, free: 1.402 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001486/0.2124, allocations: 0.7694 MB / 0.5785 GB, free: 0.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.2125, allocations: 11.98 kB / 0.5785 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.2126, allocations: 60.28 kB / 0.5786 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006757/0.2133, allocations: 409.9 kB / 0.579 GB, free: 76 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/0.2133, allocations: 29.38 kB / 0.579 GB, free: 44 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/0.2134, allocations: 44.36 kB / 0.5791 GB, free: 0 / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000763/0.2142, allocations: 429 kB / 0.5795 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.2142, allocations: 4 kB / 0.5795 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.2143, allocations: 12 kB / 0.5795 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.2143, allocations: 12 kB / 0.5795 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005842/0.2149, allocations: 291.9 kB / 0.5798 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.2169, allocations: 1.316 MB / 0.5811 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007973/0.2177, allocations: 346.7 kB / 0.5814 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.218, allocations: 136.8 kB / 0.5815 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.2181, allocations: 4 kB / 0.5815 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/0.2185, allocations: 190 kB / 0.5817 GB, free: 13.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=33): time 1.823e-06/0.2185, allocations: 0 / 0.5817 GB, free: 13.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.0009254/0.2194, allocations: 422.5 kB / 0.5821 GB, free: 12.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.743e-05/0.2196, allocations: 114.8 kB / 0.5822 GB, free: 12.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004385/0.22, allocations: 369.6 kB / 0.5826 GB, free: 12.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.22, allocations: 33.7 kB / 0.5826 GB, free: 12.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.2202, allocations: 244.4 kB / 0.5828 GB, free: 11.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/0.2203, allocations: 102.6 kB / 0.5829 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.2204, allocations: 69.69 kB / 0.583 GB, free: 11.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.2206, allocations: 358.7 kB / 0.5833 GB, free: 11.44 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.2209, allocations: 120.7 kB / 0.5835 GB, free: 11.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.2212, allocations: 174.5 kB / 0.5836 GB, free: 11.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004701/0.2216, allocations: 257.9 kB / 0.5839 GB, free: 10.87 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2217, allocations: 0 / 0.5839 GB, free: 10.87 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006274/0.2223, allocations: 358.3 kB / 0.5842 GB, free: 10.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.2223, allocations: 4 kB / 0.5842 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.2223, allocations: 4 kB / 0.5842 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.2224, allocations: 0 / 0.5842 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.2226, allocations: 63.91 kB / 0.5843 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2227, allocations: 4 kB / 0.5843 GB, free: 10.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.2229, allocations: 35.67 kB / 0.5843 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.61e-05/0.2229, allocations: 20.08 kB / 0.5843 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003235/0.2232, allocations: 220.1 kB / 0.5845 GB, free: 10.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002387/0.2235, allocations: 165.5 kB / 0.5847 GB, free: 9.984 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003748/0.2239, allocations: 235.6 kB / 0.5849 GB, free: 9.742 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.363e-06/0.2239, allocations: 3.938 kB / 0.5849 GB, free: 9.738 MB / 462.1 MB Notification: Performance of matching and sorting (n=42) (initialization_lambda0): time 0.0005188/0.2244, allocations: 332.8 kB / 0.5852 GB, free: 9.406 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.2244, allocations: 4 kB / 0.5852 GB, free: 9.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2244, allocations: 4 kB / 0.5853 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.266e-06/0.2244, allocations: 3.938 kB / 0.5853 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.2247, allocations: 55.91 kB / 0.5853 GB, free: 9.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.2247, allocations: 8.094 kB / 0.5853 GB, free: 9.332 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.2249, allocations: 31.83 kB / 0.5853 GB, free: 9.301 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.2249, allocations: 11.98 kB / 0.5854 GB, free: 9.289 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 (con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,con.greaterEqualThreshold.y,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0001779/0.2251, allocations: 212 kB / 0.5856 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.2252, allocations: 43.44 kB / 0.5856 GB, free: 9.031 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.2253, allocations: 48.3 kB / 0.5856 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2253, allocations: 0 / 0.5856 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.2253, allocations: 4 kB / 0.5857 GB, free: 8.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.2253, allocations: 7.984 kB / 0.5857 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/0.2266, allocations: 0.8616 MB / 0.5865 GB, free: 8.051 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-06/0.2266, allocations: 4 kB / 0.5865 GB, free: 8.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.2269, allocations: 51.91 kB / 0.5866 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2269, allocations: 0 / 0.5866 GB, free: 7.996 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.2269, allocations: 8 kB / 0.5866 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.2269, allocations: 3.984 kB / 0.5866 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.227, allocations: 7.938 kB / 0.5866 GB, free: 7.977 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008874/0.2279, allocations: 0.5512 MB / 0.5871 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.228, allocations: 148.5 kB / 0.5873 GB, free: 7.246 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/0.2281, allocations: 8 kB / 0.5873 GB, free: 7.238 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.2283, allocations: 24.05 kB / 0.5873 GB, free: 7.215 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.091e-05/0.2284, allocations: 27.89 kB / 0.5873 GB, free: 7.188 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.2284, allocations: 11.94 kB / 0.5873 GB, free: 7.176 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002755/0.2287, allocations: 263.2 kB / 0.5876 GB, free: 6.922 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2287, allocations: 0 / 0.5876 GB, free: 6.922 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0005332/0.2292, allocations: 155.4 kB / 0.5877 GB, free: 6.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001447/0.2294, allocations: 107.2 kB / 0.5878 GB, free: 6.656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000854/0.2302, allocations: 435.8 kB / 0.5882 GB, free: 6.23 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2302, allocations: 0 / 0.5882 GB, free: 6.23 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.2305, allocations: 147.8 kB / 0.5884 GB, free: 6.086 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006462/0.2312, allocations: 87.56 kB / 0.5885 GB, free: 6.008 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.2329, allocations: 0.8208 MB / 0.5893 GB, free: 5.156 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.2333, allocations: 0.8197 MB / 0.5901 GB, free: 4.305 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001963/0.2335, allocations: 55.22 kB / 0.5901 GB, free: 4.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.478e-05/0.2336, allocations: 31.44 kB / 0.5901 GB, free: 4.223 MB / 462.1 MB Notification: Performance of SimCode: time 1.954e-06/0.2336, allocations: 7.938 kB / 0.5902 GB, free: 4.215 MB / 462.1 MB Notification: Performance of Templates: time 0.008682/0.2423, allocations: 4.233 MB / 0.5943 GB, free: 12 kB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)