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.625/2.625, allocations: 287.5 MB / 302.4 MB, free: 8.34 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.001397/0.001397, allocations: 184.3 kB / 371 MB, free: 10.89 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.219/2.219, allocations: 205.4 MB / 0.6297 GB, free: 10.64 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.001026/0.001026, allocations: 90.36 kB / 0.743 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000572/0.0005723, allocations: 10.84 kB / 0.8658 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2292, allocations: 115.3 MB / 0.9783 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003727/0.233, allocations: 2.527 MB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002304/0.2354, allocations: 0.8975 MB / 0.9817 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004162/0.2358, allocations: 11.94 kB / 0.9817 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.2361, allocations: 47.58 kB / 0.9817 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002674/0.2364, allocations: 71.42 kB / 0.9818 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006733/0.2371, allocations: 146 kB / 0.982 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000527/0.2376, allocations: 435.3 kB / 0.9824 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003605/0.238, allocations: 145 kB / 0.9825 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.2383, allocations: 119.3 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.2385, allocations: 131.2 kB / 0.9827 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.122e-05/0.2386, allocations: 15.94 kB / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.326e-05/0.2387, allocations: 12 kB / 0.9828 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.473e-05/0.2387, allocations: 47.72 kB / 0.9828 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.876e-05/0.2388, allocations: 89.52 kB / 0.9829 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.2392, allocations: 375.3 kB / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2392, allocations: 3.938 kB / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.394e-06/0.2392, allocations: 0 / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.2393, allocations: 0 / 0.9833 GB, free: 23.32 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.001461/0.2407, allocations: 0.6428 MB / 0.9839 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.2408, allocations: 12.02 kB / 0.9839 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.2409, allocations: 47.44 kB / 0.9839 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007264/0.2416, allocations: 383.3 kB / 0.9843 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.2417, allocations: 20.66 kB / 0.9843 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.779e-05/0.2418, allocations: 36 kB / 0.9844 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007713/0.2426, allocations: 333.1 kB / 0.9847 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.2426, allocations: 0 / 0.9847 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.2426, allocations: 12 kB / 0.9847 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.2427, allocations: 12 kB / 0.9847 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006887/0.2434, allocations: 218.1 kB / 0.9849 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.2455, allocations: 1.194 MB / 0.9861 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000816/0.2463, allocations: 241.5 kB / 0.9863 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.2467, allocations: 129.1 kB / 0.9864 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.2467, allocations: 192 / 0.9864 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.2468, allocations: 34.75 kB / 0.9865 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=22): time 2.354e-06/0.2468, allocations: 0 / 0.9865 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22): time 0.0009855/0.2478, allocations: 295.6 kB / 0.9867 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/0.2478, allocations: 106.8 kB / 0.9869 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.2483, allocations: 337.6 kB / 0.9872 GB, free: 19.06 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.2484, allocations: 29.7 kB / 0.9872 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.2485, allocations: 228.1 kB / 0.9874 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.927e-05/0.2486, allocations: 78.89 kB / 0.9875 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/0.2486, allocations: 4 kB / 0.9875 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.2487, allocations: 346.8 kB / 0.9878 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.249, allocations: 79.97 kB / 0.9879 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.2494, allocations: 147.7 kB / 0.988 GB, free: 18.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.2497, allocations: 85.33 kB / 0.9881 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2497, allocations: 3.938 kB / 0.9881 GB, free: 18.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007693/0.2505, allocations: 285 kB / 0.9884 GB, free: 17.75 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.2505, allocations: 4 kB / 0.9884 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.2505, allocations: 0 / 0.9884 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.2506, allocations: 4 kB / 0.9884 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004164/0.251, allocations: 63.86 kB / 0.9885 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.251, allocations: 0 / 0.9885 GB, free: 17.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.2514, allocations: 47.86 kB / 0.9885 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.2514, allocations: 8 kB / 0.9885 GB, free: 17.62 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.0002189/0.2516, allocations: 157.8 kB / 0.9887 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.2517, allocations: 31.62 kB / 0.9887 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001026/0.2518, allocations: 39.36 kB / 0.9887 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.2518, allocations: 7.984 kB / 0.9888 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.465e-06/0.2519, allocations: 7.953 kB / 0.9888 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2519, allocations: 0 / 0.9888 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005252/0.2524, allocations: 393.2 kB / 0.9891 GB, free: 16.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2524, allocations: 0 / 0.9891 GB, free: 16.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003953/0.2528, allocations: 39.92 kB / 0.9892 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.2528, allocations: 0 / 0.9892 GB, free: 16.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.2529, allocations: 11.98 kB / 0.9892 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.2529, allocations: 0 / 0.9892 GB, free: 16.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2529, allocations: 3.938 kB / 0.9892 GB, free: 16.88 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009784/0.2539, allocations: 433.9 kB / 0.9896 GB, free: 16.45 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.254, allocations: 124.7 kB / 0.9897 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.2541, allocations: 12 kB / 0.9897 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003024/0.2544, allocations: 27.98 kB / 0.9898 GB, free: 16.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.859e-05/0.2545, allocations: 23.84 kB / 0.9898 GB, free: 16.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.2546, allocations: 8 kB / 0.9898 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003009/0.2549, allocations: 235.2 kB / 0.99 GB, free: 16 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2549, allocations: 0 / 0.99 GB, free: 16 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000432/0.2553, allocations: 75.7 kB / 0.9901 GB, free: 15.93 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.000123/0.2555, allocations: 103.2 kB / 0.9902 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006961/0.2562, allocations: 199.7 kB / 0.9904 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2562, allocations: 0 / 0.9904 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.2565, allocations: 100.3 kB / 0.9905 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008034/0.2573, allocations: 76.56 kB / 0.9905 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.259, allocations: 0.8335 MB / 0.9914 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.2593, allocations: 0.7914 MB / 0.9921 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002755/0.2596, allocations: 46.94 kB / 0.9922 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.2597, allocations: 23.44 kB / 0.9922 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of SimCode: time 9.52e-07/0.2598, allocations: 0 / 0.9922 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of Templates: time 0.009824/0.2696, allocations: 2.851 MB / 0.995 GB, free: 10.89 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)