Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0013/0.0013, allocations: 192.2 kB / 16.25 MB, free: 6.629 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.507/1.507, allocations: 205.1 MB / 222.1 MB, free: 4.738 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.691/1.691, allocations: 292.2 MB / 0.5485 GB, free: 13.62 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.001283/0.001283, allocations: 62.67 kB / 0.671 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2106, allocations: 114.6 MB / 0.7828 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.005622/0.2162, allocations: 3.023 MB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002222/0.2185, allocations: 0.9322 MB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.2188, allocations: 11.94 kB / 0.7867 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.2191, allocations: 47.52 kB / 0.7868 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.2194, allocations: 75.42 kB / 0.7868 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006165/0.22, allocations: 198.4 kB / 0.787 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005912/0.2206, allocations: 491.2 kB / 0.7875 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005156/0.2211, allocations: 217.9 kB / 0.7877 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.2214, allocations: 179.2 kB / 0.7879 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.2217, allocations: 183 kB / 0.788 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.662e-05/0.2218, allocations: 40 kB / 0.7881 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.744e-05/0.2219, allocations: 44 kB / 0.7881 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.222, allocations: 95.62 kB / 0.7882 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.2222, allocations: 202.9 kB / 0.7884 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.2228, allocations: 486.3 kB / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2228, allocations: 0 / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.076e-06/0.2229, allocations: 0 / 0.7889 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.2229, allocations: 3.938 kB / 0.7889 GB, free: 7.719 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001401/0.2243, allocations: 0.709 MB / 0.7896 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.2243, allocations: 8.031 kB / 0.7896 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.2245, allocations: 48.38 kB / 0.7896 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007635/0.2252, allocations: 388.4 kB / 0.79 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.2253, allocations: 25.03 kB / 0.79 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.865e-05/0.2254, allocations: 28.38 kB / 0.79 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008289/0.2262, allocations: 341.4 kB / 0.7904 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.2262, allocations: 0 / 0.7904 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.955e-05/0.2263, allocations: 16 kB / 0.7904 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.2263, allocations: 8 kB / 0.7904 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006927/0.227, allocations: 222.1 kB / 0.7906 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.2291, allocations: 1.182 MB / 0.7918 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008004/0.2299, allocations: 238.7 kB / 0.792 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003322/0.2303, allocations: 112.8 kB / 0.7921 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.893e-05/0.2303, allocations: 4 kB / 0.7921 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.2304, allocations: 34.94 kB / 0.7921 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 4.328e-06/0.2304, allocations: 0 / 0.7921 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0009854/0.2314, allocations: 304.5 kB / 0.7924 GB, free: 3.875 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.908e-05/0.2315, allocations: 110.8 kB / 0.7925 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/0.232, allocations: 333.7 kB / 0.7928 GB, free: 3.406 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.232, allocations: 29.7 kB / 0.7929 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.2322, allocations: 228.2 kB / 0.7931 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.021e-05/0.2324, allocations: 70.91 kB / 0.7932 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.2325, allocations: 57.64 kB / 0.7932 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2327, allocations: 342.8 kB / 0.7935 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.2329, allocations: 83.91 kB / 0.7936 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.2333, allocations: 143.7 kB / 0.7938 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005227/0.2338, allocations: 209.8 kB / 0.794 GB, free: 2.195 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2338, allocations: 4 kB / 0.794 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007147/0.2345, allocations: 284.9 kB / 0.7942 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.2346, allocations: 4 kB / 0.7942 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2346, allocations: 0 / 0.7942 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.2346, allocations: 4 kB / 0.7942 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.2349, allocations: 55.91 kB / 0.7943 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.235, allocations: 7.984 kB / 0.7943 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.2352, allocations: 39.95 kB / 0.7943 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.2353, allocations: 8 kB / 0.7943 GB, free: 1.789 MB / 0.6075 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 (con.hys.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.2355, allocations: 161.7 kB / 0.7945 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.011e-05/0.2356, allocations: 39.53 kB / 0.7945 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.2357, allocations: 43.34 kB / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.2358, allocations: 0 / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.2358, allocations: 0 / 0.7946 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.2358, allocations: 8 kB / 0.7946 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.2364, allocations: 397.2 kB / 0.795 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2364, allocations: 0 / 0.795 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003388/0.2368, allocations: 43.91 kB / 0.795 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/0.2368, allocations: 4 kB / 0.795 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.2368, allocations: 4 kB / 0.795 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2368, allocations: 0 / 0.795 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2369, allocations: 0 / 0.795 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009897/0.2378, allocations: 430 kB / 0.7954 GB, free: 0.6055 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.238, allocations: 132.6 kB / 0.7955 GB, free: 468 kB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.2381, allocations: 4 kB / 0.7956 GB, free: 464 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.2384, allocations: 19.92 kB / 0.7956 GB, free: 444 kB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.644e-05/0.2385, allocations: 19.91 kB / 0.7956 GB, free: 424 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.2385, allocations: 8 kB / 0.7956 GB, free: 416 kB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003349/0.2389, allocations: 243.2 kB / 0.7958 GB, free: 176 kB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2389, allocations: 0 / 0.7958 GB, free: 176 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0005274/0.2394, allocations: 67.84 kB / 0.7959 GB, free: 108 kB / 0.6075 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 (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.0001338/0.2396, allocations: 99.25 kB / 0.796 GB, free: 0 / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006798/0.2403, allocations: 205.9 kB / 0.7962 GB, free: 15.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2403, allocations: 8 kB / 0.7962 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.2405, allocations: 107 kB / 0.7963 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008025/0.2414, allocations: 81.2 kB / 0.7964 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.2431, allocations: 0.8392 MB / 0.7972 GB, free: 14.74 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.2435, allocations: 0.799 MB / 0.798 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002192/0.2437, allocations: 34.95 kB / 0.798 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.933e-05/0.2438, allocations: 31.44 kB / 0.798 GB, free: 13.85 MB / 0.6231 GB Notification: Performance of SimCode: time 4.11e-07/0.2438, allocations: 0 / 0.798 GB, free: 13.85 MB / 0.6231 GB Notification: Performance of Templates: time 0.009141/0.253, allocations: 3.099 MB / 0.8011 GB, free: 10.78 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)