Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.42/1.42, allocations: 251.5 MB / 267.4 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008935/0.0008936, allocations: 170.7 kB / 326.5 MB, free: 2.691 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205 MB / 0.5766 GB, free: 20.96 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009052/0.0009051, allocations: 84.08 kB / 0.6803 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004599/0.00046, allocations: 9.094 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2773, allocations: 105.4 MB / 0.8967 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004917/0.2823, allocations: 3.822 MB / 0.9005 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002994/0.2853, allocations: 1.337 MB / 0.9018 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005382/0.2859, allocations: 23.94 kB / 0.9018 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.2863, allocations: 95.2 kB / 0.9019 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004526/0.2868, allocations: 146.8 kB / 0.902 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.288, allocations: 390.9 kB / 0.9024 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.00121/0.2892, allocations: 0.8733 MB / 0.9033 GB, free: 61.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007623/0.29, allocations: 422.1 kB / 0.9037 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.2904, allocations: 242.7 kB / 0.9039 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.2907, allocations: 250.4 kB / 0.9041 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.339e-05/0.2908, allocations: 24 kB / 0.9041 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 8.689e-05/0.2909, allocations: 24 kB / 0.9042 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001107/0.291, allocations: 103.4 kB / 0.9043 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.2913, allocations: 306 kB / 0.9046 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0007289/0.2921, allocations: 0.7986 MB / 0.9053 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2921, allocations: 4 kB / 0.9053 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.964e-06/0.2921, allocations: 0 / 0.9053 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.2921, allocations: 0 / 0.9053 GB, free: 59.33 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001961/0.2941, allocations: 0.9525 MB / 0.9063 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2941, allocations: 12.03 kB / 0.9063 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.2943, allocations: 87.91 kB / 0.9064 GB, free: 58.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009526/0.2953, allocations: 0.5494 MB / 0.9069 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.2953, allocations: 41.69 kB / 0.9069 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.2954, allocations: 60.31 kB / 0.907 GB, free: 57.53 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.2969, allocations: 0.6195 MB / 0.9076 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/0.2969, allocations: 0 / 0.9076 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.187e-05/0.297, allocations: 32 kB / 0.9076 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.297, allocations: 12 kB / 0.9077 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.2983, allocations: 473 kB / 0.9081 GB, free: 56.38 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.3016, allocations: 2.024 MB / 0.9101 GB, free: 54.29 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009504/0.3026, allocations: 457 kB / 0.9105 GB, free: 53.83 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004601/0.3031, allocations: 246.1 kB / 0.9107 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.3031, allocations: 4.438 kB / 0.9108 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006048/0.3037, allocations: 269.3 kB / 0.911 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=49): time 2.875e-06/0.3037, allocations: 0 / 0.911 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49): time 0.001387/0.3051, allocations: 0.596 MB / 0.9116 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.3052, allocations: 59.84 kB / 0.9116 GB, free: 52.64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.3057, allocations: 446 kB / 0.9121 GB, free: 52.19 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.3057, allocations: 37.7 kB / 0.9121 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.3059, allocations: 329 kB / 0.9124 GB, free: 51.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.3061, allocations: 169.5 kB / 0.9126 GB, free: 51.66 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.3061, allocations: 53.62 kB / 0.9126 GB, free: 51.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.387e-05/0.3062, allocations: 362.8 kB / 0.913 GB, free: 51.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004148/0.3067, allocations: 173 kB / 0.9131 GB, free: 51.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.3071, allocations: 253.8 kB / 0.9134 GB, free: 50.79 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008233/0.3079, allocations: 468 kB / 0.9138 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.308, allocations: 0 / 0.9138 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001104/0.3091, allocations: 0.5663 MB / 0.9144 GB, free: 49.72 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.906e-05/0.3091, allocations: 37.64 kB / 0.9144 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3091, allocations: 4 kB / 0.9144 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.3092, allocations: 4 kB / 0.9144 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005518/0.3097, allocations: 116.1 kB / 0.9145 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.3098, allocations: 8 kB / 0.9146 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004096/0.3102, allocations: 71.48 kB / 0.9146 GB, free: 49.48 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.3102, allocations: 16 kB / 0.9146 GB, free: 49.46 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002556/0.3105, allocations: 209.7 kB / 0.9148 GB, free: 49.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.3106, allocations: 59.28 kB / 0.9149 GB, free: 49.19 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.3107, allocations: 65.58 kB / 0.915 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3107, allocations: 8 kB / 0.915 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.3107, allocations: 0 / 0.915 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.3107, allocations: 0 / 0.915 GB, free: 49.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.3125, allocations: 1.193 MB / 0.9161 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3125, allocations: 3.984 kB / 0.9161 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005239/0.3131, allocations: 95.83 kB / 0.9162 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.3131, allocations: 0 / 0.9162 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.3131, allocations: 15.98 kB / 0.9162 GB, free: 47.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3131, allocations: 4 kB / 0.9162 GB, free: 47.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3132, allocations: 4 kB / 0.9162 GB, free: 47.74 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.3143, allocations: 0.7796 MB / 0.917 GB, free: 46.95 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.3144, allocations: 172.3 kB / 0.9172 GB, free: 46.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.794e-05/0.3145, allocations: 8 kB / 0.9172 GB, free: 46.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.3148, allocations: 35.97 kB / 0.9172 GB, free: 46.72 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.161e-05/0.3149, allocations: 36.52 kB / 0.9172 GB, free: 46.69 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.315, allocations: 12 kB / 0.9173 GB, free: 46.68 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002658/0.3152, allocations: 310.9 kB / 0.9176 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.31e-07/0.3152, allocations: 0 / 0.9176 GB, free: 46.38 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003959/0.3156, allocations: 151.4 kB / 0.9177 GB, free: 46.23 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001223/0.3158, allocations: 111.2 kB / 0.9178 GB, free: 46.11 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008252/0.3166, allocations: 497 kB / 0.9183 GB, free: 45.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3166, allocations: 0.5 kB / 0.9183 GB, free: 45.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003641/0.317, allocations: 222.4 kB / 0.9185 GB, free: 45.39 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.3177, allocations: 153.3 kB / 0.9186 GB, free: 45.24 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.3202, allocations: 1.638 MB / 0.9202 GB, free: 43.57 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.3205, allocations: 0.8941 MB / 0.9211 GB, free: 42.64 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.3206, allocations: 43.44 kB / 0.9212 GB, free: 42.6 MB / 0.6042 GB Notification: Performance of SimCode: time 7.31e-07/0.3206, allocations: 0 / 0.9212 GB, free: 42.6 MB / 0.6042 GB Notification: Performance of Templates: time 0.009744/0.3304, allocations: 7.48 MB / 0.9285 GB, free: 35.15 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)