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.001396/0.001396, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 193.8 kB / 16.13 MB, free: 6.652 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.466/1.466, allocations: 205.1 MB / 222 MB, free: 4.746 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.675/1.675, allocations: 292.3 MB / 0.5484 GB, free: 13.7 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.001788/0.001788, allocations: 59.34 kB / 0.6708 GB, free: 26.6 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2878, allocations: 114.6 MB / 0.7827 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.004945/0.2928, allocations: 3.016 MB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002312/0.2951, allocations: 0.9438 MB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006103/0.2958, allocations: 11.94 kB / 0.7865 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003544/0.2962, allocations: 43.58 kB / 0.7866 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.2966, allocations: 71.47 kB / 0.7866 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.2973, allocations: 195.8 kB / 0.7868 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005526/0.2979, allocations: 447.2 kB / 0.7873 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003692/0.2982, allocations: 209.5 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.2985, allocations: 155.2 kB / 0.7876 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003431/0.2989, allocations: 159 kB / 0.7878 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.385e-05/0.299, allocations: 20 kB / 0.7878 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.195e-05/0.299, allocations: 24 kB / 0.7878 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.487e-05/0.2991, allocations: 67.67 kB / 0.7879 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.2993, allocations: 182.8 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.2998, allocations: 466.3 kB / 0.7885 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2998, allocations: 4 kB / 0.7885 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2998, allocations: 0 / 0.7885 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.66e-05/0.2999, allocations: 0 / 0.7885 GB, free: 8.027 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.001406/0.3013, allocations: 0.7128 MB / 0.7892 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3013, allocations: 8.031 kB / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.3014, allocations: 48.38 kB / 0.7892 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.302, allocations: 392.4 kB / 0.7896 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.736e-05/0.3021, allocations: 21.03 kB / 0.7896 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.3021, allocations: 28.38 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/0.3028, allocations: 345.4 kB / 0.79 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.3028, allocations: 0 / 0.79 GB, free: 6.375 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.3028, allocations: 12 kB / 0.79 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.3028, allocations: 8 kB / 0.79 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004802/0.3033, allocations: 214.1 kB / 0.7902 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3051, allocations: 1.19 MB / 0.7914 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.3057, allocations: 230.8 kB / 0.7916 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.3059, allocations: 120.8 kB / 0.7917 GB, free: 4.527 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.306, allocations: 4 kB / 0.7917 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.306, allocations: 34.94 kB / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 1.874e-06/0.306, allocations: 0 / 0.7917 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22): time 0.0007165/0.3068, allocations: 299.8 kB / 0.792 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.404e-05/0.3069, allocations: 114.8 kB / 0.7921 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.3073, allocations: 333.7 kB / 0.7925 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.3073, allocations: 37.64 kB / 0.7925 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.3075, allocations: 220.2 kB / 0.7927 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 7.32e-05/0.3076, allocations: 74.89 kB / 0.7928 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.3077, allocations: 57.64 kB / 0.7928 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002664/0.308, allocations: 346.8 kB / 0.7932 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.3082, allocations: 75.97 kB / 0.7932 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.3085, allocations: 147.6 kB / 0.7934 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.3089, allocations: 204.8 kB / 0.7936 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3089, allocations: 0 / 0.7936 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005371/0.3094, allocations: 291 kB / 0.7939 GB, free: 2.211 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3095, allocations: 8 kB / 0.7939 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.3095, allocations: 0 / 0.7939 GB, free: 2.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3095, allocations: 4 kB / 0.7939 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.3097, allocations: 55.91 kB / 0.7939 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.3097, allocations: 4 kB / 0.7939 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.3099, allocations: 35.95 kB / 0.794 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.31, allocations: 8 kB / 0.794 GB, free: 2.098 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.0001614/0.3101, allocations: 161.7 kB / 0.7941 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/0.3102, allocations: 39.52 kB / 0.7942 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.702e-05/0.3103, allocations: 39.36 kB / 0.7942 GB, free: 1.848 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3103, allocations: 4 kB / 0.7942 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3103, allocations: 0 / 0.7942 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3103, allocations: 0 / 0.7942 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.3108, allocations: 401.2 kB / 0.7946 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3108, allocations: 0 / 0.7946 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002192/0.311, allocations: 39.97 kB / 0.7946 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.311, allocations: 0 / 0.7946 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.311, allocations: 8 kB / 0.7946 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.311, allocations: 3.938 kB / 0.7946 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.311, allocations: 0 / 0.7946 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007383/0.3118, allocations: 426 kB / 0.795 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.3119, allocations: 132.5 kB / 0.7952 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.184e-05/0.312, allocations: 8 kB / 0.7952 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001822/0.3122, allocations: 15.98 kB / 0.7952 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.73e-05/0.3123, allocations: 15.97 kB / 0.7952 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.3123, allocations: 11.98 kB / 0.7952 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003242/0.3126, allocations: 243.1 kB / 0.7954 GB, free: 500 kB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3126, allocations: 4.062 kB / 0.7954 GB, free: 496 kB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003349/0.313, allocations: 63.84 kB / 0.7955 GB, free: 432 kB / 0.6075 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.0001431/0.3131, allocations: 114 kB / 0.7956 GB, free: 312 kB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004843/0.3136, allocations: 207 kB / 0.7958 GB, free: 108 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3136, allocations: 384 / 0.7958 GB, free: 108 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.3138, allocations: 103.9 kB / 0.7959 GB, free: 4 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.3145, allocations: 81.27 kB / 0.796 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001551/0.316, allocations: 0.8254 MB / 0.7968 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3165, allocations: 0.7992 MB / 0.7976 GB, free: 14.24 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002032/0.3167, allocations: 38.95 kB / 0.7976 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.786e-05/0.3168, allocations: 23.44 kB / 0.7976 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.3168, allocations: 0 / 0.7976 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of Templates: time 0.007119/0.3239, allocations: 2.966 MB / 0.8005 GB, free: 11.25 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)