Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.646/2.646, allocations: 287.3 MB / 302.3 MB, free: 8.359 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.001616/0.001616, allocations: 189.3 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.256/2.256, allocations: 205.4 MB / 0.6295 GB, free: 10.49 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.001169/0.001169, allocations: 86.98 kB / 0.7428 GB, free: 6.492 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.0004751, allocations: 11.16 kB / 0.8656 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2567, allocations: 115.3 MB / 0.9782 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003575/0.2604, allocations: 2.489 MB / 0.9806 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00212/0.2625, allocations: 0.8898 MB / 0.9815 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000315/0.2629, allocations: 11.94 kB / 0.9815 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.24e-05/0.263, allocations: 35.64 kB / 0.9815 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004973/0.2635, allocations: 103.6 kB / 0.9816 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005781/0.2641, allocations: 166.5 kB / 0.9818 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.2646, allocations: 300.1 kB / 0.9821 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003138/0.265, allocations: 149 kB / 0.9822 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002447/0.2652, allocations: 139.2 kB / 0.9823 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.2654, allocations: 127.2 kB / 0.9825 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.792e-05/0.2655, allocations: 8 kB / 0.9825 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5e-05/0.2656, allocations: 12 kB / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.2656, allocations: 47.77 kB / 0.9825 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.392e-05/0.2657, allocations: 89.45 kB / 0.9826 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.2661, allocations: 371.3 kB / 0.983 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.2661, allocations: 0 / 0.983 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.044e-06/0.2661, allocations: 4 kB / 0.983 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.2661, allocations: 0 / 0.983 GB, free: 23.43 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.001261/0.2674, allocations: 0.6427 MB / 0.9836 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2675, allocations: 16.02 kB / 0.9836 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.2676, allocations: 51.38 kB / 0.9837 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006745/0.2683, allocations: 387.2 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.2683, allocations: 20.66 kB / 0.9841 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/0.2684, allocations: 28 kB / 0.9841 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007563/0.2692, allocations: 341.1 kB / 0.9844 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.2692, allocations: 0 / 0.9844 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.2693, allocations: 12 kB / 0.9844 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.2693, allocations: 8 kB / 0.9844 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006893/0.27, allocations: 222.1 kB / 0.9846 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001919/0.2719, allocations: 1.19 MB / 0.9858 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008065/0.2727, allocations: 231.3 kB / 0.986 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.2728, allocations: 4.188 kB / 0.986 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.2728, allocations: 42.73 kB / 0.9861 GB, free: 20.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 2.414e-06/0.2728, allocations: 3.938 kB / 0.9861 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0009653/0.2738, allocations: 295.9 kB / 0.9863 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.2739, allocations: 106.8 kB / 0.9864 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004299/0.2743, allocations: 337.6 kB / 0.9868 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.853e-05/0.2744, allocations: 37.64 kB / 0.9868 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.2746, allocations: 228.2 kB / 0.987 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.879e-05/0.2747, allocations: 70.91 kB / 0.9871 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/0.2747, allocations: 4 kB / 0.9871 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.271e-05/0.2748, allocations: 346.8 kB / 0.9874 GB, free: 18.59 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.2751, allocations: 75.97 kB / 0.9875 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.2754, allocations: 143.6 kB / 0.9876 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.2757, allocations: 93.33 kB / 0.9877 GB, free: 18.26 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2758, allocations: 0 / 0.9877 GB, free: 18.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007667/0.2765, allocations: 280.9 kB / 0.988 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.2766, allocations: 8.188 kB / 0.988 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2766, allocations: 4 kB / 0.988 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.2766, allocations: 4 kB / 0.988 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.277, allocations: 51.91 kB / 0.9881 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.2771, allocations: 7.953 kB / 0.9881 GB, free: 17.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.2774, allocations: 43.66 kB / 0.9881 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.2774, allocations: 12 kB / 0.9881 GB, free: 17.85 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.0002152/0.2776, allocations: 165.8 kB / 0.9883 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/0.2777, allocations: 31.62 kB / 0.9883 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.838e-05/0.2778, allocations: 39.36 kB / 0.9883 GB, free: 17.61 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.2779, allocations: 0 / 0.9883 GB, free: 17.61 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.2779, allocations: 0 / 0.9883 GB, free: 17.61 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.2779, allocations: 11.88 kB / 0.9884 GB, free: 17.59 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005188/0.2784, allocations: 397.2 kB / 0.9887 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2784, allocations: 0 / 0.9887 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000392/0.2788, allocations: 39.98 kB / 0.9888 GB, free: 17.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.2788, allocations: 4 kB / 0.9888 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.2789, allocations: 4 kB / 0.9888 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2789, allocations: 7.922 kB / 0.9888 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2789, allocations: 0 / 0.9888 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009714/0.2799, allocations: 434.5 kB / 0.9892 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.28, allocations: 124.7 kB / 0.9893 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.222e-05/0.2801, allocations: 4 kB / 0.9893 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/0.2804, allocations: 23.97 kB / 0.9893 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.059e-05/0.2805, allocations: 19.97 kB / 0.9894 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.2806, allocations: 4 kB / 0.9894 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002914/0.2809, allocations: 243.2 kB / 0.9896 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2809, allocations: 0 / 0.9896 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004466/0.2813, allocations: 71.69 kB / 0.9897 GB, free: 16.16 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 0.0001253/0.2815, allocations: 111.1 kB / 0.9898 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006521/0.2821, allocations: 204 kB / 0.99 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.2821, allocations: 0 / 0.99 GB, free: 15.85 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.2825, allocations: 99.91 kB / 0.9901 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006352/0.2831, allocations: 73.39 kB / 0.9901 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.2848, allocations: 0.8257 MB / 0.9909 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.2851, allocations: 0.8031 MB / 0.9917 GB, free: 14 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002623/0.2854, allocations: 38.94 kB / 0.9918 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.2855, allocations: 31.44 kB / 0.9918 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of SimCode: time 8.62e-07/0.2855, allocations: 0 / 0.9918 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of Templates: time 0.009262/0.2948, allocations: 2.84 MB / 0.9946 GB, free: 11.12 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)