Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.739/1.739, allocations: 288.4 MB / 303.7 MB, free: 8.094 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.001263/0.001264, allocations: 187.3 kB / 372.3 MB, free: 10.1 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.764/1.764, allocations: 205.4 MB / 0.631 GB, free: 9.879 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008479/0.0008475, allocations: 102.8 kB / 0.7444 GB, free: 5.781 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004495/0.0004496, allocations: 11.66 kB / 0.8675 GB, free: 141.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2281, allocations: 115.3 MB / 0.9801 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003378/0.2316, allocations: 3.536 MB / 0.9836 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002074/0.2337, allocations: 1.287 MB / 0.9848 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003577/0.234, allocations: 23.88 kB / 0.9849 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000239/0.2343, allocations: 83.22 kB / 0.9849 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002598/0.2346, allocations: 142.8 kB / 0.9851 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.2352, allocations: 288.2 kB / 0.9853 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0005723/0.2358, allocations: 0.8423 MB / 0.9862 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004555/0.2363, allocations: 422.4 kB / 0.9866 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.2365, allocations: 222.8 kB / 0.9868 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.2367, allocations: 238.6 kB / 0.987 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.2368, allocations: 24 kB / 0.987 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.361e-05/0.2368, allocations: 28 kB / 0.9871 GB, free: 20.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.258e-05/0.2369, allocations: 95.48 kB / 0.9872 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.2371, allocations: 320 kB / 0.9875 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.2376, allocations: 0.8063 MB / 0.9882 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2376, allocations: 4 kB / 0.9882 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.223e-06/0.2376, allocations: 0 / 0.9882 GB, free: 18.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.2376, allocations: 0 / 0.9882 GB, free: 18.95 MB / 0.6198 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.001356/0.239, allocations: 0.9446 MB / 0.9892 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.239, allocations: 8.031 kB / 0.9892 GB, free: 17.94 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.2391, allocations: 84 kB / 0.9893 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006536/0.2398, allocations: 0.5611 MB / 0.9898 GB, free: 17.26 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.2399, allocations: 45.69 kB / 0.9898 GB, free: 17.21 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.088e-05/0.2399, allocations: 60.28 kB / 0.9899 GB, free: 17.16 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008765/0.2408, allocations: 0.6156 MB / 0.9905 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.2408, allocations: 0 / 0.9905 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.2409, allocations: 31.94 kB / 0.9905 GB, free: 16.48 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2409, allocations: 12 kB / 0.9905 GB, free: 16.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008261/0.2417, allocations: 469 kB / 0.991 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.2441, allocations: 2.012 MB / 0.993 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007668/0.2449, allocations: 459.2 kB / 0.9934 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.2452, allocations: 246 kB / 0.9936 GB, free: 13.23 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.2453, allocations: 12.42 kB / 0.9936 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004964/0.2458, allocations: 269.3 kB / 0.9939 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.2458, allocations: 0 / 0.9939 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=49): time 0.001121/0.2469, allocations: 0.5925 MB / 0.9945 GB, free: 12.35 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.247, allocations: 59.78 kB / 0.9945 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003931/0.2474, allocations: 445.9 kB / 0.995 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2474, allocations: 33.7 kB / 0.995 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.2476, allocations: 320.3 kB / 0.9953 GB, free: 11.47 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.543e-05/0.2477, allocations: 165.6 kB / 0.9955 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.077e-05/0.2477, allocations: 12 kB / 0.9955 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.143e-05/0.2478, allocations: 366.8 kB / 0.9958 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003284/0.2481, allocations: 169 kB / 0.996 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003536/0.2485, allocations: 253.8 kB / 0.9962 GB, free: 10.49 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006597/0.2492, allocations: 460 kB / 0.9967 GB, free: 10.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2492, allocations: 4 kB / 0.9967 GB, free: 10 MB / 0.6198 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008468/0.25, allocations: 0.5625 MB / 0.9972 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.2501, allocations: 39.52 kB / 0.9973 GB, free: 9.387 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2501, allocations: 4 kB / 0.9973 GB, free: 9.383 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2501, allocations: 4 kB / 0.9973 GB, free: 9.379 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.2506, allocations: 123.8 kB / 0.9974 GB, free: 9.258 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.2506, allocations: 4 kB / 0.9974 GB, free: 9.254 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.2509, allocations: 83.48 kB / 0.9975 GB, free: 9.172 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.2509, allocations: 16 kB / 0.9975 GB, free: 9.156 MB / 0.6198 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.0002047/0.2511, allocations: 205.7 kB / 0.9977 GB, free: 8.945 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.034e-05/0.2512, allocations: 59.28 kB / 0.9977 GB, free: 8.887 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2513, allocations: 61.58 kB / 0.9978 GB, free: 8.824 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2513, allocations: 8 kB / 0.9978 GB, free: 8.816 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2513, allocations: 4 kB / 0.9978 GB, free: 8.812 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.2513, allocations: 0 / 0.9978 GB, free: 8.812 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.2527, allocations: 1.189 MB / 0.999 GB, free: 7.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2527, allocations: 3.984 kB / 0.999 GB, free: 7.566 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.2532, allocations: 95.89 kB / 0.9991 GB, free: 7.473 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.2532, allocations: 4 kB / 0.9991 GB, free: 7.469 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.2532, allocations: 11.98 kB / 0.9991 GB, free: 7.457 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2532, allocations: 7.938 kB / 0.9991 GB, free: 7.449 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2533, allocations: 0 / 0.9991 GB, free: 7.449 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.2544, allocations: 0.7718 MB / 0.9998 GB, free: 6.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.2545, allocations: 176.2 kB / 1 GB, free: 6.469 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.068e-05/0.2546, allocations: 12 kB / 1 GB, free: 6.457 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.2549, allocations: 27.97 kB / 1 GB, free: 6.43 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.756e-05/0.255, allocations: 36.39 kB / 1 GB, free: 6.395 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.255, allocations: 19.98 kB / 1 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002593/0.2553, allocations: 306.9 kB / 1 GB, free: 6.078 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2553, allocations: 0 / 1 GB, free: 6.078 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003842/0.2557, allocations: 135.5 kB / 1.001 GB, free: 5.945 MB / 0.6198 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.0001256/0.2558, allocations: 116.7 kB / 1.001 GB, free: 5.824 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007711/0.2566, allocations: 493 kB / 1.001 GB, free: 5.332 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2566, allocations: 0 / 1.001 GB, free: 5.332 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003556/0.257, allocations: 218.9 kB / 1.001 GB, free: 5.117 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.2577, allocations: 145.7 kB / 1.001 GB, free: 4.977 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.26, allocations: 1.625 MB / 1.003 GB, free: 3.32 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.2602, allocations: 0.8863 MB / 1.004 GB, free: 2.406 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002686/0.2605, allocations: 64.58 kB / 1.004 GB, free: 2.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.829e-05/0.2606, allocations: 35.44 kB / 1.004 GB, free: 2.305 MB / 0.6198 GB Notification: Performance of SimCode: time 7.51e-07/0.2606, allocations: 3.938 kB / 1.004 GB, free: 2.301 MB / 0.6198 GB Notification: Performance of Templates: time 0.009511/0.2701, allocations: 5.428 MB / 1.009 GB, free: 12.95 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)