Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis") translateModel(BuildingSystems.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7731/0.7731, allocations: 140.1 MB / 156 MB, free: 5.188 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 184.9 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.4 MB / 426.3 MB, free: 8.473 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009636/0.0009636, allocations: 78.38 kB / 0.4945 GB, free: 8.418 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001713/0.001713, allocations: 281.3 kB / 0.5729 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004642/0.0004642, allocations: 12 kB / 0.662 GB, free: 6.828 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3501, allocations: 79.3 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4816, allocations: 113.9 MB / 0.8507 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001864/0.4818, allocations: 79.97 kB / 0.8508 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01697/0.4988, allocations: 6.959 MB / 0.8575 GB, free: 5.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4988, allocations: 0 / 0.8575 GB, free: 5.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.933e-05/0.4989, allocations: 8 kB / 0.8576 GB, free: 5.242 MB / 0.5261 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.0009608/0.4998, allocations: 0.6469 MB / 0.8582 GB, free: 4.539 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.4999, allocations: 8.031 kB / 0.8582 GB, free: 4.531 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.961e-05/0.5, allocations: 48.38 kB / 0.8582 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005911/0.5006, allocations: 396.5 kB / 0.8586 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.5006, allocations: 29.03 kB / 0.8586 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.5007, allocations: 24.59 kB / 0.8587 GB, free: 4.008 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006175/0.5013, allocations: 370.5 kB / 0.859 GB, free: 3.613 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.5013, allocations: 7.875 kB / 0.859 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.5014, allocations: 12 kB / 0.859 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.495e-06/0.5014, allocations: 8 kB / 0.8591 GB, free: 3.586 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005126/0.5019, allocations: 246.1 kB / 0.8593 GB, free: 3.348 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.5036, allocations: 1.256 MB / 0.8605 GB, free: 2.016 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000597/0.5042, allocations: 274.8 kB / 0.8608 GB, free: 1.738 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.5044, allocations: 124.8 kB / 0.8609 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.5045, allocations: 11.97 kB / 0.8609 GB, free: 1.602 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.5045, allocations: 38.56 kB / 0.8609 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.5045, allocations: 0 / 0.8609 GB, free: 1.555 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22): time 0.0007047/0.5052, allocations: 341.5 kB / 0.8613 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.232e-05/0.5053, allocations: 158.2 kB / 0.8614 GB, free: 1.023 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/0.5057, allocations: 357.6 kB / 0.8618 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.5057, allocations: 29.7 kB / 0.8618 GB, free: 0.6328 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.5059, allocations: 212.3 kB / 0.862 GB, free: 428 kB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/0.506, allocations: 78.84 kB / 0.8621 GB, free: 348 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.192e-05/0.506, allocations: 4 kB / 0.8621 GB, free: 344 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.5061, allocations: 338.8 kB / 0.8624 GB, free: 16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.5063, allocations: 99.89 kB / 0.8625 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002937/0.5066, allocations: 175.6 kB / 0.8627 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.5071, allocations: 217.9 kB / 0.8629 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.5071, allocations: 4 kB / 0.8629 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005258/0.5076, allocations: 300.9 kB / 0.8632 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.5076, allocations: 5.406 kB / 0.8632 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5077, allocations: 4 kB / 0.8632 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.5077, allocations: 3.938 kB / 0.8632 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.5079, allocations: 55.91 kB / 0.8632 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.5079, allocations: 7.984 kB / 0.8632 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.5082, allocations: 43.86 kB / 0.8633 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.5082, allocations: 12 kB / 0.8633 GB, free: 15.04 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 29 * 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.0001644/0.5084, allocations: 153.8 kB / 0.8634 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-05/0.5084, allocations: 43.55 kB / 0.8635 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.979e-05/0.5085, allocations: 39.47 kB / 0.8635 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.5085, allocations: 7.938 kB / 0.8635 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5085, allocations: 0 / 0.8635 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.5085, allocations: 4 kB / 0.8635 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004362/0.509, allocations: 425.1 kB / 0.8639 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.509, allocations: 0 / 0.8639 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.5092, allocations: 39.98 kB / 0.864 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.5092, allocations: 4 kB / 0.864 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.5093, allocations: 7.984 kB / 0.864 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.5093, allocations: 3.938 kB / 0.864 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.5093, allocations: 4 kB / 0.864 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006974/0.51, allocations: 490 kB / 0.8644 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.5101, allocations: 128.7 kB / 0.8646 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.5102, allocations: 4 kB / 0.8646 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.5104, allocations: 31.97 kB / 0.8646 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.5104, allocations: 20.03 kB / 0.8646 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.5105, allocations: 8 kB / 0.8646 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002989/0.5108, allocations: 247.2 kB / 0.8649 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5108, allocations: 0 / 0.8649 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003173/0.5111, allocations: 75.69 kB / 0.8649 GB, free: 13.25 MB / 0.5417 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.0001272/0.5112, allocations: 107.2 kB / 0.865 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004488/0.5117, allocations: 227.8 kB / 0.8653 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.5117, allocations: 4 kB / 0.8653 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000208/0.5119, allocations: 120.1 kB / 0.8654 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005308/0.5125, allocations: 76.03 kB / 0.8654 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.5138, allocations: 0.8666 MB / 0.8663 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.5141, allocations: 0.7992 MB / 0.8671 GB, free: 11 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001586/0.5143, allocations: 42.95 kB / 0.8671 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.793e-05/0.5144, allocations: 27.44 kB / 0.8671 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of SimCode: time 5.51e-07/0.5144, allocations: 3.938 kB / 0.8671 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of Templates: time 0.006775/0.5211, allocations: 3.381 MB / 0.8704 GB, free: 7.59 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)