Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 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.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0008133/0.0008132, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001008/0.001008, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.684/1.684, allocations: 292.7 MB / 0.5499 GB, free: 14.56 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.0005226/0.0005226, allocations: 12.84 kB / 0.6737 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2306, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004037/0.2347, allocations: 3.54 MB / 0.7907 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002101/0.2368, allocations: 1.283 MB / 0.792 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003047/0.2372, allocations: 27.88 kB / 0.792 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.2375, allocations: 87.2 kB / 0.7921 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.2377, allocations: 138.8 kB / 0.7922 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007263/0.2385, allocations: 289.9 kB / 0.7925 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007481/0.2392, allocations: 0.8267 MB / 0.7933 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004738/0.2397, allocations: 299.6 kB / 0.7936 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.24, allocations: 222.8 kB / 0.7938 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002774/0.2403, allocations: 242.6 kB / 0.794 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.945e-05/0.2403, allocations: 24 kB / 0.7941 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.033e-05/0.2404, allocations: 27.94 kB / 0.7941 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.543e-05/0.2405, allocations: 95.53 kB / 0.7942 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.2406, allocations: 153.3 kB / 0.7943 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007149/0.2413, allocations: 0.8027 MB / 0.7951 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2413, allocations: 3.938 kB / 0.7951 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.645e-06/0.2414, allocations: 4 kB / 0.7951 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.368e-06/0.2414, allocations: 0 / 0.7951 GB, free: 3.84 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001528/0.2429, allocations: 0.96 MB / 0.7961 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.243, allocations: 8.031 kB / 0.7961 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.2431, allocations: 79.06 kB / 0.7961 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007795/0.2439, allocations: 0.5368 MB / 0.7967 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.2439, allocations: 41.31 kB / 0.7967 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.416e-05/0.244, allocations: 60 kB / 0.7968 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2451, allocations: 0.6114 MB / 0.7974 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2451, allocations: 0 / 0.7974 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.2452, allocations: 24 kB / 0.7974 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.2452, allocations: 16 kB / 0.7974 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008929/0.2461, allocations: 469 kB / 0.7978 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.2488, allocations: 2.024 MB / 0.7998 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008712/0.2496, allocations: 460.8 kB / 0.8003 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.2501, allocations: 246 kB / 0.8005 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.77e-05/0.2501, allocations: 8.438 kB / 0.8005 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000555/0.2507, allocations: 257.4 kB / 0.8007 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.663e-06/0.2507, allocations: 0 / 0.8007 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001165/0.2519, allocations: 0.6045 MB / 0.8013 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.2519, allocations: 59.84 kB / 0.8014 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.2524, allocations: 445.9 kB / 0.8018 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.2525, allocations: 37.7 kB / 0.8019 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.2527, allocations: 328.2 kB / 0.8022 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.2528, allocations: 161.7 kB / 0.8023 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.247e-05/0.2529, allocations: 8 kB / 0.8023 GB, free: 12.19 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.253, allocations: 366.8 kB / 0.8027 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.2534, allocations: 169 kB / 0.8028 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003871/0.2538, allocations: 253.8 kB / 0.8031 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.2542, allocations: 227.8 kB / 0.8033 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2542, allocations: 0 / 0.8033 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009581/0.2552, allocations: 0.5662 MB / 0.8038 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.2552, allocations: 37.89 kB / 0.8039 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.2552, allocations: 8 kB / 0.8039 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.2553, allocations: 7.953 kB / 0.8039 GB, free: 10.52 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.2557, allocations: 115.8 kB / 0.804 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.2557, allocations: 7.984 kB / 0.804 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.256, allocations: 71.5 kB / 0.8041 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.2561, allocations: 16 kB / 0.8041 GB, free: 10.31 MB / 0.6231 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002511/0.2563, allocations: 212.8 kB / 0.8043 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.2564, allocations: 55.33 kB / 0.8044 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.2565, allocations: 65.58 kB / 0.8044 GB, free: 9.98 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.2566, allocations: 11.95 kB / 0.8044 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2566, allocations: 0 / 0.8044 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2566, allocations: 4 kB / 0.8044 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.2582, allocations: 1.185 MB / 0.8056 GB, free: 8.723 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2582, allocations: 7.938 kB / 0.8056 GB, free: 8.715 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.2586, allocations: 87.89 kB / 0.8057 GB, free: 8.629 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.2587, allocations: 7.953 kB / 0.8057 GB, free: 8.621 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.2587, allocations: 15.98 kB / 0.8057 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.2587, allocations: 0 / 0.8057 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2587, allocations: 0 / 0.8057 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.2599, allocations: 0.768 MB / 0.8065 GB, free: 7.824 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.2601, allocations: 168.4 kB / 0.8066 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.067e-05/0.2602, allocations: 19.95 kB / 0.8066 GB, free: 7.621 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.2604, allocations: 35.84 kB / 0.8067 GB, free: 7.586 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.2605, allocations: 32.52 kB / 0.8067 GB, free: 7.555 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.2606, allocations: 23.98 kB / 0.8067 GB, free: 7.531 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003014/0.2609, allocations: 306.8 kB / 0.807 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2609, allocations: 0 / 0.807 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004225/0.2613, allocations: 147.4 kB / 0.8072 GB, free: 7.09 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000146/0.2615, allocations: 115.9 kB / 0.8073 GB, free: 6.965 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008416/0.2623, allocations: 493.5 kB / 0.8077 GB, free: 6.469 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2623, allocations: 0 / 0.8077 GB, free: 6.469 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.2627, allocations: 218.4 kB / 0.8079 GB, free: 6.254 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006796/0.2634, allocations: 136.7 kB / 0.8081 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.2659, allocations: 1.617 MB / 0.8097 GB, free: 4.48 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2664, allocations: 0.8863 MB / 0.8105 GB, free: 3.57 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002664/0.2667, allocations: 68.58 kB / 0.8106 GB, free: 3.5 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.2668, allocations: 35.44 kB / 0.8106 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of SimCode: time 3.31e-07/0.2668, allocations: 7.938 kB / 0.8106 GB, free: 3.457 MB / 0.6231 GB Notification: Performance of Templates: time 0.009635/0.2764, allocations: 5.367 MB / 0.8159 GB, free: 14.17 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: