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.001692/0.001691, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 200.2 kB / 16.64 MB, free: 6.453 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.561/1.561, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.859/1.859, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001418/0.001418, allocations: 68.81 kB / 0.6723 GB, free: 25.86 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.22, allocations: 114.5 MB / 0.7841 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.005753/0.2258, allocations: 2.986 MB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.2281, allocations: 0.9478 MB / 0.788 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003262/0.2285, allocations: 19.94 kB / 0.788 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003214/0.2288, allocations: 59.33 kB / 0.788 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.2291, allocations: 91.16 kB / 0.7881 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006247/0.2297, allocations: 218.8 kB / 0.7883 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005157/0.2302, allocations: 495.2 kB / 0.7888 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.2306, allocations: 213.6 kB / 0.789 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.2308, allocations: 183.1 kB / 0.7892 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.231, allocations: 175.1 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.2311, allocations: 44 kB / 0.7894 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.228e-05/0.2311, allocations: 40 kB / 0.7894 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.2312, allocations: 99.56 kB / 0.7895 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.2314, allocations: 199 kB / 0.7897 GB, free: 7.023 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004837/0.2319, allocations: 0.4942 MB / 0.7902 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2319, allocations: 0 / 0.7902 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2319, allocations: 3.938 kB / 0.7902 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.368e-06/0.2319, allocations: 8 kB / 0.7902 GB, free: 6.516 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.001203/0.2331, allocations: 0.7011 MB / 0.7909 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001673/0.2333, allocations: 12.03 kB / 0.7909 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.2334, allocations: 60.38 kB / 0.791 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.2342, allocations: 388.4 kB / 0.7913 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.2343, allocations: 29.03 kB / 0.7914 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.2343, allocations: 28.36 kB / 0.7914 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.235, allocations: 341.5 kB / 0.7917 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2351, allocations: 3.984 kB / 0.7917 GB, free: 4.855 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.2351, allocations: 19.98 kB / 0.7917 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.2351, allocations: 4 kB / 0.7917 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004718/0.2356, allocations: 214.1 kB / 0.7919 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.2374, allocations: 1.174 MB / 0.7931 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006443/0.2381, allocations: 231.7 kB / 0.7933 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.2383, allocations: 116.8 kB / 0.7934 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.2384, allocations: 7.984 kB / 0.7934 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.2384, allocations: 38.94 kB / 0.7935 GB, free: 2.969 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.2384, allocations: 0 / 0.7935 GB, free: 2.969 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.000729/0.2392, allocations: 291.4 kB / 0.7937 GB, free: 2.68 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.592e-05/0.2393, allocations: 114.8 kB / 0.7939 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.2396, allocations: 333.7 kB / 0.7942 GB, free: 2.211 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.2397, allocations: 29.7 kB / 0.7942 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.2399, allocations: 228.2 kB / 0.7944 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.889e-05/0.2399, allocations: 74.86 kB / 0.7945 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.956e-05/0.24, allocations: 53.69 kB / 0.7945 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2402, allocations: 338.8 kB / 0.7949 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2404, allocations: 83.95 kB / 0.7949 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.2406, allocations: 139.7 kB / 0.7951 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003766/0.241, allocations: 213.4 kB / 0.7953 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.241, allocations: 0 / 0.7953 GB, free: 1.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005231/0.2415, allocations: 284.9 kB / 0.7955 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.2416, allocations: 4 kB / 0.7956 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.2416, allocations: 7.984 kB / 0.7956 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.2416, allocations: 0 / 0.7956 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.2419, allocations: 55.92 kB / 0.7956 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.2419, allocations: 7.922 kB / 0.7956 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.2421, allocations: 31.95 kB / 0.7957 GB, free: 0.6133 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.2421, allocations: 12 kB / 0.7957 GB, free: 0.6016 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.0002091/0.2423, allocations: 167.8 kB / 0.7958 GB, free: 440 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.2424, allocations: 35.53 kB / 0.7959 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.692e-05/0.2425, allocations: 43.36 kB / 0.7959 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.2425, allocations: 0 / 0.7959 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.2425, allocations: 0 / 0.7959 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.2425, allocations: 3.984 kB / 0.7959 GB, free: 352 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004852/0.243, allocations: 401.2 kB / 0.7963 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.243, allocations: 4 kB / 0.7963 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.2433, allocations: 35.98 kB / 0.7963 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.2433, allocations: 0 / 0.7963 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.2433, allocations: 8 kB / 0.7963 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2433, allocations: 7.984 kB / 0.7963 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2433, allocations: 0 / 0.7963 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006959/0.244, allocations: 437.1 kB / 0.7968 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.2442, allocations: 128.6 kB / 0.7969 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/0.2442, allocations: 11.98 kB / 0.7969 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.2444, allocations: 15.98 kB / 0.7969 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.074e-05/0.2444, allocations: 15.97 kB / 0.7969 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.2445, allocations: 8 kB / 0.7969 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002415/0.2447, allocations: 239.2 kB / 0.7972 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.615e-06/0.2447, allocations: 0 / 0.7972 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003171/0.245, allocations: 71.84 kB / 0.7972 GB, free: 14.91 MB / 0.6231 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.0001377/0.2452, allocations: 110.3 kB / 0.7973 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005041/0.2457, allocations: 199.7 kB / 0.7975 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2457, allocations: 0 / 0.7975 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.2459, allocations: 108.2 kB / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.2465, allocations: 82.92 kB / 0.7977 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.2477, allocations: 0.6947 MB / 0.7984 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.248, allocations: 0.7951 MB / 0.7992 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001435/0.2482, allocations: 34.97 kB / 0.7992 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.325e-05/0.2483, allocations: 31.42 kB / 0.7992 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2483, allocations: 0 / 0.7992 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of Templates: time 0.006688/0.255, allocations: 3.181 MB / 0.8023 GB, free: 9.664 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)