Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.712/1.712, allocations: 288.3 MB / 303.2 MB, free: 8.117 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.001093/0.001093, allocations: 193 kB / 371.9 MB, free: 10.29 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.828/1.828, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009168/0.0009166, allocations: 98.8 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004502/0.0004505, allocations: 10.91 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2113/0.2117, allocations: 115.3 MB / 0.9794 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002419/0.2142, allocations: 2.489 MB / 0.9818 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.2155, allocations: 0.8857 MB / 0.9827 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002157/0.2158, allocations: 11.94 kB / 0.9827 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 5.941e-05/0.2158, allocations: 35.64 kB / 0.9827 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003797/0.2162, allocations: 107.6 kB / 0.9828 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.2166, allocations: 161.9 kB / 0.983 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.2169, allocations: 300 kB / 0.9833 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.2171, allocations: 156.9 kB / 0.9834 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.2172, allocations: 135.3 kB / 0.9836 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.2174, allocations: 127.2 kB / 0.9837 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.2174, allocations: 12 kB / 0.9837 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.909e-05/0.2175, allocations: 8 kB / 0.9837 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.2175, allocations: 55.69 kB / 0.9838 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.656e-05/0.2176, allocations: 89.52 kB / 0.9838 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002239/0.2178, allocations: 363.3 kB / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.2178, allocations: 4 kB / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.345e-06/0.2178, allocations: 0 / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.2178, allocations: 3.938 kB / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007672/0.2186, allocations: 0.6389 MB / 0.9848 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2186, allocations: 16.02 kB / 0.9848 GB, free: 22.08 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.2187, allocations: 47.44 kB / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004537/0.2192, allocations: 387.2 kB / 0.9853 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.2192, allocations: 20.66 kB / 0.9853 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.541e-05/0.2193, allocations: 24 kB / 0.9853 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004478/0.2197, allocations: 341.1 kB / 0.9856 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.2197, allocations: 0 / 0.9856 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.2198, allocations: 12 kB / 0.9856 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.2198, allocations: 8 kB / 0.9856 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.2202, allocations: 222.1 kB / 0.9859 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.2213, allocations: 1.198 MB / 0.987 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004611/0.2218, allocations: 231.3 kB / 0.9872 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.339e-05/0.2218, allocations: 4.188 kB / 0.9872 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.2219, allocations: 46.73 kB / 0.9873 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.2219, allocations: 0 / 0.9873 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0005347/0.2224, allocations: 290.4 kB / 0.9876 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.2224, allocations: 110.8 kB / 0.9877 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.2227, allocations: 345.5 kB / 0.988 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.2227, allocations: 29.7 kB / 0.988 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.902e-05/0.2228, allocations: 224.2 kB / 0.9882 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.2229, allocations: 70.91 kB / 0.9883 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.073e-05/0.2229, allocations: 4 kB / 0.9883 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.55e-05/0.2229, allocations: 346.8 kB / 0.9886 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.2231, allocations: 79.91 kB / 0.9887 GB, free: 17.88 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.2233, allocations: 143.7 kB / 0.9889 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.2234, allocations: 88.02 kB / 0.9889 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2235, allocations: 0 / 0.9889 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003983/0.2239, allocations: 284.9 kB / 0.9892 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2239, allocations: 13.75 kB / 0.9892 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2239, allocations: 0 / 0.9892 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2239, allocations: 4 kB / 0.9892 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.2241, allocations: 51.91 kB / 0.9893 GB, free: 17.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2241, allocations: 4 kB / 0.9893 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.2243, allocations: 55.61 kB / 0.9893 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2244, allocations: 8 kB / 0.9893 GB, free: 17.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.2245, allocations: 157.8 kB / 0.9895 GB, free: 17.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.572e-05/0.2245, allocations: 35.62 kB / 0.9895 GB, free: 17.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.016e-05/0.2246, allocations: 39.36 kB / 0.9896 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2246, allocations: 0 / 0.9896 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2246, allocations: 4 kB / 0.9896 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.2246, allocations: 3.984 kB / 0.9896 GB, free: 16.96 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002933/0.2249, allocations: 401.2 kB / 0.99 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2249, allocations: 0 / 0.99 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002024/0.2251, allocations: 47.92 kB / 0.99 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2252, allocations: 0 / 0.99 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.2252, allocations: 4 kB / 0.99 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2252, allocations: 7.984 kB / 0.99 GB, free: 16.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2252, allocations: 0 / 0.99 GB, free: 16.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.2257, allocations: 430.1 kB / 0.9904 GB, free: 16.03 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/0.2258, allocations: 124.7 kB / 0.9905 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.2259, allocations: 4 kB / 0.9906 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.226, allocations: 27.97 kB / 0.9906 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.2261, allocations: 15.97 kB / 0.9906 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.2261, allocations: 12 kB / 0.9906 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001614/0.2263, allocations: 235.2 kB / 0.9908 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.01e-07/0.2263, allocations: 0 / 0.9908 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002806/0.2266, allocations: 75.62 kB / 0.9909 GB, free: 15.53 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.009e-05/0.2267, allocations: 107.2 kB / 0.991 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.227, allocations: 203.9 kB / 0.9912 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.227, allocations: 0 / 0.9912 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.2272, allocations: 95.91 kB / 0.9913 GB, free: 15.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003961/0.2276, allocations: 78.22 kB / 0.9914 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.2286, allocations: 0.8335 MB / 0.9922 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001699/0.2288, allocations: 0.7992 MB / 0.993 GB, free: 13.37 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001421/0.2289, allocations: 42.95 kB / 0.993 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.181e-05/0.229, allocations: 23.44 kB / 0.993 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of SimCode: time 2.91e-07/0.229, allocations: 0 / 0.993 GB, free: 13.3 MB / 0.6198 GB Notification: Performance of Templates: time 0.005056/0.2341, allocations: 2.85 MB / 0.9958 GB, free: 10.48 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)