Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.763/1.763, allocations: 292.3 MB / 308.1 MB, free: 4.289 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.001496/0.001496, allocations: 183.4 kB / 376.9 MB, free: 1.793 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.812/1.812, allocations: 205.1 MB / 0.6354 GB, free: 9.762 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.0009668/0.0009668, allocations: 98.98 kB / 0.748 GB, free: 61.26 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.002459/0.00246, allocations: 51.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2992, allocations: 114.5 MB / 0.9822 GB, free: 10.38 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.006287/0.3056, allocations: 3.179 MB / 0.9853 GB, free: 7.176 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002839/0.3085, allocations: 0.9865 MB / 0.9863 GB, free: 6.18 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006384/0.3092, allocations: 11.94 kB / 0.9863 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0003937/0.3096, allocations: 47.58 kB / 0.9863 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.3101, allocations: 75.36 kB / 0.9864 GB, free: 6.047 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007398/0.3108, allocations: 223.7 kB / 0.9866 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0007114/0.3116, allocations: 0.5114 MB / 0.9871 GB, free: 5.312 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000453/0.312, allocations: 239.6 kB / 0.9873 GB, free: 5.078 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.3123, allocations: 171.1 kB / 0.9875 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.3126, allocations: 190.9 kB / 0.9877 GB, free: 4.723 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 9.83e-05/0.3127, allocations: 24 kB / 0.9877 GB, free: 4.699 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.3128, allocations: 24 kB / 0.9877 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 8.159e-05/0.3129, allocations: 91.56 kB / 0.9878 GB, free: 4.586 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3131, allocations: 206.7 kB / 0.988 GB, free: 4.383 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0005084/0.3136, allocations: 0.5255 MB / 0.9885 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3136, allocations: 4 kB / 0.9885 GB, free: 3.852 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3136, allocations: 0 / 0.9885 GB, free: 3.852 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.828e-05/0.3137, allocations: 0 / 0.9885 GB, free: 3.852 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001387/0.315, allocations: 0.7661 MB / 0.9893 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3151, allocations: 11.97 kB / 0.9893 GB, free: 3.027 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.3152, allocations: 56.28 kB / 0.9893 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006466/0.3159, allocations: 408.6 kB / 0.9897 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/0.3159, allocations: 29.38 kB / 0.9898 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.163e-05/0.316, allocations: 40.36 kB / 0.9898 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006655/0.3167, allocations: 405.9 kB / 0.9902 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.3167, allocations: 0 / 0.9902 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.3167, allocations: 12 kB / 0.9902 GB, free: 2.035 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.3168, allocations: 11.94 kB / 0.9902 GB, free: 2.023 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005577/0.3173, allocations: 271.8 kB / 0.9905 GB, free: 1.758 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.3192, allocations: 1.313 MB / 0.9918 GB, free: 376 kB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006837/0.3199, allocations: 311.7 kB / 0.9921 GB, free: 56 kB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.3202, allocations: 144.8 kB / 0.9922 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.3203, allocations: 7.984 kB / 0.9922 GB, free: 15.9 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004418/0.3207, allocations: 173.4 kB / 0.9924 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=33): time 1.883e-06/0.3207, allocations: 0 / 0.9924 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=33): time 0.0007914/0.3215, allocations: 381.8 kB / 0.9927 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.3216, allocations: 85.09 kB / 0.9928 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.322, allocations: 345.6 kB / 0.9931 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.322, allocations: 37.7 kB / 0.9932 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.3222, allocations: 232.3 kB / 0.9934 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.577e-05/0.3223, allocations: 106.5 kB / 0.9935 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.3224, allocations: 70.06 kB / 0.9936 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.3226, allocations: 346.8 kB / 0.9939 GB, free: 14.09 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.3228, allocations: 104.7 kB / 0.994 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.3231, allocations: 176.3 kB / 0.9942 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004525/0.3235, allocations: 256.5 kB / 0.9944 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3236, allocations: 0 / 0.9944 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006172/0.3242, allocations: 358.1 kB / 0.9947 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3242, allocations: 6.969 kB / 0.9948 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3242, allocations: 4 kB / 0.9948 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3242, allocations: 0 / 0.9948 GB, free: 13.16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.3245, allocations: 71.89 kB / 0.9948 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3245, allocations: 4 kB / 0.9948 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.3248, allocations: 35.92 kB / 0.9949 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/0.3248, allocations: 16 kB / 0.9949 GB, free: 13.03 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: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0002154/0.325, allocations: 177.6 kB / 0.9951 GB, free: 12.85 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.951e-05/0.3251, allocations: 39.47 kB / 0.9951 GB, free: 12.81 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.3252, allocations: 52.23 kB / 0.9951 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3252, allocations: 0 / 0.9951 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.3252, allocations: 4 kB / 0.9951 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3252, allocations: 0 / 0.9951 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.3265, allocations: 0.8191 MB / 0.9959 GB, free: 11.88 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.3265, allocations: 3.984 kB / 0.9959 GB, free: 11.87 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.3268, allocations: 47.91 kB / 0.996 GB, free: 11.82 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3268, allocations: 3.938 kB / 0.996 GB, free: 11.82 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.3268, allocations: 8 kB / 0.996 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3268, allocations: 0 / 0.996 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3268, allocations: 4 kB / 0.996 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004578/0.3314, allocations: 2.8 MB / 0.9987 GB, free: 8.875 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.3316, allocations: 140.5 kB / 0.9989 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.3316, allocations: 12 kB / 0.9989 GB, free: 8.707 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.3318, allocations: 24.03 kB / 0.9989 GB, free: 8.684 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.142e-05/0.3319, allocations: 23.91 kB / 0.9989 GB, free: 8.66 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.3319, allocations: 8 kB / 0.9989 GB, free: 8.652 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002528/0.3322, allocations: 247.2 kB / 0.9992 GB, free: 8.414 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3322, allocations: 0 / 0.9992 GB, free: 8.414 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005263/0.3327, allocations: 115.7 kB / 0.9993 GB, free: 8.301 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000162/0.3329, allocations: 111.2 kB / 0.9994 GB, free: 8.18 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00059/0.3335, allocations: 264.6 kB / 0.9996 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3335, allocations: 0 / 0.9996 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000263/0.3338, allocations: 139.7 kB / 0.9998 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005508/0.3344, allocations: 85.81 kB / 0.9999 GB, free: 7.703 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.3363, allocations: 1.195 MB / 1.001 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004634/0.3368, allocations: 0.8198 MB / 1.002 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.000228/0.337, allocations: 63.17 kB / 1.002 GB, free: 5.559 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.3371, allocations: 35.42 kB / 1.002 GB, free: 5.523 MB / 0.7292 GB Notification: Performance of SimCode: time 1.082e-06/0.3371, allocations: 0 / 1.002 GB, free: 5.523 MB / 0.7292 GB Notification: Performance of Templates: time 0.009436/0.3466, allocations: 4.136 MB / 1.006 GB, free: 1.41 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)