Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009623, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006961/0.006961, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.385/3.385, allocations: 473.4 MB / 0.7469 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 6.094 kB / 0.9158 GB, free: 33.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 162.2 MB / 1.074 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005676/0.3139, allocations: 3.724 MB / 1.078 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003111/0.317, allocations: 1.286 MB / 1.079 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007036/0.3178, allocations: 23.88 kB / 1.079 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004251/0.3182, allocations: 95.2 kB / 1.079 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006402/0.3189, allocations: 146.8 kB / 1.079 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.3201, allocations: 378.1 kB / 1.08 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001026/0.3211, allocations: 0.8773 MB / 1.08 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006318/0.3217, allocations: 422.1 kB / 1.081 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003755/0.3221, allocations: 234.7 kB / 1.081 GB, free: 356 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.3224, allocations: 258.4 kB / 1.081 GB, free: 96 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.3225, allocations: 24 kB / 1.081 GB, free: 72 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.838e-05/0.3226, allocations: 20 kB / 1.081 GB, free: 52 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.3227, allocations: 99.42 kB / 1.081 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002882/0.323, allocations: 335.8 kB / 1.082 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008451/0.3238, allocations: 0.9537 MB / 1.083 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3238, allocations: 0 / 1.083 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.496e-06/0.3238, allocations: 0 / 1.083 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.849e-06/0.3239, allocations: 7.938 kB / 1.083 GB, free: 14.65 MB / 0.8419 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.001687/0.3256, allocations: 0.9524 MB / 1.084 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3256, allocations: 8.031 kB / 1.084 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.3257, allocations: 84 kB / 1.084 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009936/0.3267, allocations: 0.5495 MB / 1.084 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.3268, allocations: 45.69 kB / 1.084 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.241e-05/0.3269, allocations: 56.28 kB / 1.084 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.328, allocations: 0.6118 MB / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.3281, allocations: 0 / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.081e-05/0.3281, allocations: 31.94 kB / 1.085 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3281, allocations: 19.97 kB / 1.085 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000956/0.3291, allocations: 465 kB / 1.085 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.3323, allocations: 2.028 MB / 1.087 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009153/0.3332, allocations: 457 kB / 1.088 GB, free: 9.168 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004438/0.3337, allocations: 246 kB / 1.088 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.3337, allocations: 4.438 kB / 1.088 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006669/0.3344, allocations: 277.2 kB / 1.088 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=49): time 2.004e-06/0.3344, allocations: 0 / 1.088 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of matching and sorting (n=49): time 0.001367/0.3358, allocations: 0.5968 MB / 1.089 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.3358, allocations: 59.84 kB / 1.089 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005061/0.3363, allocations: 445.9 kB / 1.089 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.3364, allocations: 45.69 kB / 1.09 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.3367, allocations: 320.3 kB / 1.09 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002529/0.337, allocations: 165.6 kB / 1.09 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.59e-05/0.337, allocations: 45.7 kB / 1.09 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3372, allocations: 370.8 kB / 1.09 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.3376, allocations: 173 kB / 1.091 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.338, allocations: 253.8 kB / 1.091 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008467/0.3389, allocations: 468 kB / 1.091 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3389, allocations: 0 / 1.091 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001217/0.3401, allocations: 0.5663 MB / 1.092 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.3402, allocations: 41.62 kB / 1.092 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3402, allocations: 4 kB / 1.092 GB, free: 5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3402, allocations: 4 kB / 1.092 GB, free: 4.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.3407, allocations: 120.1 kB / 1.092 GB, free: 4.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3407, allocations: 4 kB / 1.092 GB, free: 4.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003393/0.3411, allocations: 71.5 kB / 1.092 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.406e-05/0.3411, allocations: 16 kB / 1.092 GB, free: 4.789 MB / 0.8419 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.0002415/0.3413, allocations: 214.3 kB / 1.092 GB, free: 4.57 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.045e-05/0.3414, allocations: 63.17 kB / 1.092 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.3416, allocations: 57.59 kB / 1.092 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3416, allocations: 11.98 kB / 1.092 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3416, allocations: 0 / 1.092 GB, free: 4.438 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3416, allocations: 3.984 kB / 1.092 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.3434, allocations: 1.197 MB / 1.094 GB, free: 3.184 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3434, allocations: 0 / 1.094 GB, free: 3.184 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3439, allocations: 99.88 kB / 1.094 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3439, allocations: 4 kB / 1.094 GB, free: 3.082 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.3439, allocations: 8 kB / 1.094 GB, free: 3.074 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.3439, allocations: 8 kB / 1.094 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3439, allocations: 0 / 1.094 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3455, allocations: 0.7757 MB / 1.094 GB, free: 2.273 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.3457, allocations: 168.4 kB / 1.095 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.836e-05/0.3457, allocations: 8 kB / 1.095 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.346, allocations: 51.69 kB / 1.095 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.757e-05/0.3461, allocations: 40.38 kB / 1.095 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.3462, allocations: 12 kB / 1.095 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004712/0.3467, allocations: 306.9 kB / 1.095 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3467, allocations: 0 / 1.095 GB, free: 1.684 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004262/0.3471, allocations: 139.5 kB / 1.095 GB, free: 1.547 MB / 0.8419 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.0001396/0.3472, allocations: 122.2 kB / 1.095 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001098/0.3483, allocations: 489.5 kB / 1.096 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3484, allocations: 4 kB / 1.096 GB, free: 0.9258 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004371/0.3488, allocations: 222.4 kB / 1.096 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008291/0.3496, allocations: 138.1 kB / 1.096 GB, free: 0.5703 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003224/0.3529, allocations: 1.692 MB / 1.098 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007572/0.3536, allocations: 0.8863 MB / 1.099 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003065/0.354, allocations: 68.58 kB / 1.099 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.3541, allocations: 39.44 kB / 1.099 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.3541, allocations: 3.938 kB / 1.099 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of Templates: time 0.01329/0.3674, allocations: 5.527 MB / 1.104 GB, free: 8.375 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)