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/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.737/1.737, allocations: 292.3 MB / 308.1 MB, free: 4.293 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.001474/0.001474, allocations: 197.9 kB / 376.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.826/1.826, allocations: 205.1 MB / 0.6354 GB, free: 9.805 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001296/0.001295, allocations: 98.33 kB / 0.748 GB, free: 61.14 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 47.92 kB / 0.8703 GB, free: 13.13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3136, allocations: 114.6 MB / 0.9822 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.006125/0.3198, allocations: 3.018 MB / 0.9852 GB, free: 7.375 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002149/0.322, allocations: 0.9284 MB / 0.9861 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004925/0.3225, allocations: 11.94 kB / 0.9861 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.3228, allocations: 47.58 kB / 0.9861 GB, free: 6.379 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.3232, allocations: 83.34 kB / 0.9862 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006567/0.3239, allocations: 191.8 kB / 0.9864 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0006625/0.3246, allocations: 463.2 kB / 0.9868 GB, free: 5.652 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004302/0.325, allocations: 209.4 kB / 0.987 GB, free: 5.449 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003049/0.3253, allocations: 151.2 kB / 0.9872 GB, free: 5.301 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.3256, allocations: 155.1 kB / 0.9873 GB, free: 5.148 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 7.984e-05/0.3257, allocations: 27.98 kB / 0.9873 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/0.3258, allocations: 20 kB / 0.9874 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.3259, allocations: 71.62 kB / 0.9874 GB, free: 5.031 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0002351/0.3261, allocations: 182.8 kB / 0.9876 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0004754/0.3266, allocations: 466.4 kB / 0.9881 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3266, allocations: 0 / 0.9881 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.032e-06/0.3266, allocations: 0 / 0.9881 GB, free: 4.395 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.867e-05/0.3266, allocations: 0 / 0.9881 GB, free: 4.395 MB / 0.7136 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.001355/0.328, allocations: 0.709 MB / 0.9887 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.328, allocations: 11.97 kB / 0.9888 GB, free: 3.625 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.3282, allocations: 48.38 kB / 0.9888 GB, free: 3.578 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.3288, allocations: 388.5 kB / 0.9892 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.3289, allocations: 24.97 kB / 0.9892 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.902e-05/0.3289, allocations: 40.28 kB / 0.9892 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/0.3296, allocations: 333.5 kB / 0.9896 GB, free: 2.738 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.3296, allocations: 7.875 kB / 0.9896 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.3296, allocations: 12 kB / 0.9896 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3297, allocations: 12 kB / 0.9896 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005187/0.3302, allocations: 210.1 kB / 0.9898 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.3319, allocations: 1.186 MB / 0.9909 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005762/0.3325, allocations: 230.8 kB / 0.9912 GB, free: 1.008 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.3327, allocations: 112.8 kB / 0.9913 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.3328, allocations: 0 / 0.9913 GB, free: 0.8945 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.3328, allocations: 38.94 kB / 0.9913 GB, free: 0.8477 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=22): time 1.112e-06/0.3328, allocations: 4 kB / 0.9913 GB, free: 0.8438 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22): time 0.0007023/0.3335, allocations: 297 kB / 0.9916 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.3336, allocations: 106.8 kB / 0.9917 GB, free: 428 kB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003789/0.334, allocations: 337.7 kB / 0.992 GB, free: 84 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.334, allocations: 29.7 kB / 0.992 GB, free: 48 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.3342, allocations: 228.2 kB / 0.9923 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.3343, allocations: 74.91 kB / 0.9923 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/0.3344, allocations: 53.7 kB / 0.9924 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.3346, allocations: 346.8 kB / 0.9927 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.3347, allocations: 67.97 kB / 0.9928 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.335, allocations: 159.6 kB / 0.9929 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003848/0.3354, allocations: 205.9 kB / 0.9931 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3354, allocations: 0 / 0.9931 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000529/0.3359, allocations: 284.8 kB / 0.9934 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.336, allocations: 8 kB / 0.9934 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.336, allocations: 4 kB / 0.9934 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.336, allocations: 4.188 kB / 0.9934 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.3362, allocations: 59.91 kB / 0.9935 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3363, allocations: 4 kB / 0.9935 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.3365, allocations: 35.67 kB / 0.9935 GB, free: 14.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.163e-05/0.3365, allocations: 11.98 kB / 0.9935 GB, free: 14.46 MB / 0.7292 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.0001759/0.3367, allocations: 161.7 kB / 0.9937 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.373e-05/0.3367, allocations: 35.61 kB / 0.9937 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3368, allocations: 47.3 kB / 0.9938 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.3369, allocations: 4 kB / 0.9938 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3369, allocations: 0 / 0.9938 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3369, allocations: 0 / 0.9938 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004324/0.3373, allocations: 397.2 kB / 0.9941 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3373, allocations: 0 / 0.9941 GB, free: 13.76 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.3376, allocations: 43.91 kB / 0.9942 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3376, allocations: 0 / 0.9942 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.3376, allocations: 4 kB / 0.9942 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3376, allocations: 4 kB / 0.9942 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3376, allocations: 4 kB / 0.9942 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003982/0.3416, allocations: 2.541 MB / 0.9967 GB, free: 11.03 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.3418, allocations: 132.6 kB / 0.9968 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/0.3418, allocations: 4 kB / 0.9968 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.342, allocations: 15.98 kB / 0.9968 GB, free: 10.86 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.09e-05/0.3421, allocations: 20.03 kB / 0.9968 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.3421, allocations: 8 kB / 0.9968 GB, free: 10.84 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002513/0.3424, allocations: 239.2 kB / 0.9971 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3424, allocations: 0 / 0.9971 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004563/0.3428, allocations: 95.75 kB / 0.9972 GB, free: 10.51 MB / 0.7292 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.0001296/0.343, allocations: 103.2 kB / 0.9973 GB, free: 10.4 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.3435, allocations: 199.8 kB / 0.9975 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3435, allocations: 0 / 0.9975 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.3437, allocations: 99.89 kB / 0.9976 GB, free: 10.11 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.3443, allocations: 80.28 kB / 0.9976 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.346, allocations: 1.023 MB / 0.9986 GB, free: 8.969 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.3464, allocations: 0.8031 MB / 0.9994 GB, free: 8.141 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001982/0.3467, allocations: 38.95 kB / 0.9994 GB, free: 8.102 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.116e-05/0.3468, allocations: 31.42 kB / 0.9995 GB, free: 8.07 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/0.3468, allocations: 0 / 0.9995 GB, free: 8.07 MB / 0.7292 GB Notification: Performance of Templates: time 0.008944/0.3557, allocations: 3.692 MB / 1.003 GB, free: 4.402 MB / 0.7292 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)