Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008175/0.008175, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001688/0.001688, allocations: 193.4 kB / 16.67 MB, free: 5.969 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.411/1.411, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.575/1.575, allocations: 251.7 MB / 0.5094 GB, free: 3.02 MB / 414.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.001758/0.001758, allocations: 67.91 kB / 0.7258 GB, free: 9.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2167, allocations: 104.7 MB / 0.828 GB, free: 376 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004696/0.2214, allocations: 3.146 MB / 0.8311 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002199/0.2236, allocations: 1.013 MB / 0.8321 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004494/0.2241, allocations: 11.94 kB / 0.8321 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.2245, allocations: 75.19 kB / 0.8322 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.2248, allocations: 99.09 kB / 0.8323 GB, free: 12 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006342/0.2255, allocations: 235 kB / 0.8325 GB, free: 11.77 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0006009/0.2261, allocations: 0.5543 MB / 0.833 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004631/0.2265, allocations: 255.4 kB / 0.8333 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.2269, allocations: 203.1 kB / 0.8335 GB, free: 10.76 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000251/0.2271, allocations: 206.9 kB / 0.8337 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.311e-05/0.2272, allocations: 52 kB / 0.8337 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.726e-05/0.2273, allocations: 56 kB / 0.8338 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.855e-05/0.2274, allocations: 111.5 kB / 0.8339 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002152/0.2276, allocations: 238.7 kB / 0.8341 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000658/0.2283, allocations: 0.5679 MB / 0.8346 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2283, allocations: 0 / 0.8346 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.245e-06/0.2283, allocations: 0 / 0.8346 GB, free: 9.539 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.566e-06/0.2283, allocations: 0 / 0.8346 GB, free: 9.539 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001168/0.2295, allocations: 0.7773 MB / 0.8354 GB, free: 8.711 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2295, allocations: 12.03 kB / 0.8354 GB, free: 8.699 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.646e-05/0.2296, allocations: 56.61 kB / 0.8355 GB, free: 8.645 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006571/0.2303, allocations: 424.8 kB / 0.8359 GB, free: 8.188 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.316e-05/0.2303, allocations: 29.38 kB / 0.8359 GB, free: 8.16 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.2304, allocations: 44.31 kB / 0.8359 GB, free: 8.117 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.2311, allocations: 405.8 kB / 0.8363 GB, free: 7.695 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.2311, allocations: 4 kB / 0.8363 GB, free: 7.691 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/0.2312, allocations: 16 kB / 0.8364 GB, free: 7.676 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.2312, allocations: 8 kB / 0.8364 GB, free: 7.668 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000536/0.2317, allocations: 259.8 kB / 0.8366 GB, free: 7.418 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.2335, allocations: 1.309 MB / 0.8379 GB, free: 6.031 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/0.2343, allocations: 313.7 kB / 0.8382 GB, free: 5.719 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.2346, allocations: 152.7 kB / 0.8383 GB, free: 5.566 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.2346, allocations: 4 kB / 0.8383 GB, free: 5.562 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003487/0.235, allocations: 169.5 kB / 0.8385 GB, free: 5.387 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.325e-06/0.235, allocations: 3.938 kB / 0.8385 GB, free: 5.383 MB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.0008423/0.2358, allocations: 382 kB / 0.8389 GB, free: 5.004 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.2359, allocations: 85.11 kB / 0.8389 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.2363, allocations: 353.6 kB / 0.8393 GB, free: 4.547 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.2364, allocations: 37.7 kB / 0.8393 GB, free: 4.504 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.2366, allocations: 241.2 kB / 0.8395 GB, free: 4.266 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.2367, allocations: 107.1 kB / 0.8396 GB, free: 4.16 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.2368, allocations: 74.06 kB / 0.8397 GB, free: 4.078 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.237, allocations: 346.8 kB / 0.8401 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.2372, allocations: 104.7 kB / 0.8402 GB, free: 3.629 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00026/0.2375, allocations: 168.3 kB / 0.8403 GB, free: 3.438 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.2379, allocations: 259.8 kB / 0.8406 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2379, allocations: 0 / 0.8406 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006107/0.2385, allocations: 358.7 kB / 0.8409 GB, free: 2.809 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2386, allocations: 7.938 kB / 0.8409 GB, free: 2.801 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2386, allocations: 0 / 0.8409 GB, free: 2.801 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2386, allocations: 4 kB / 0.8409 GB, free: 2.797 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.2388, allocations: 67.91 kB / 0.841 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.2389, allocations: 0 / 0.841 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.2391, allocations: 39.95 kB / 0.841 GB, free: 2.691 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.694e-05/0.2391, allocations: 16 kB / 0.841 GB, free: 2.676 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * 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.0001971/0.2393, allocations: 173.7 kB / 0.8412 GB, free: 2.496 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.2394, allocations: 47.66 kB / 0.8412 GB, free: 2.449 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.2395, allocations: 44.25 kB / 0.8413 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.2395, allocations: 4 kB / 0.8413 GB, free: 2.398 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.2395, allocations: 0 / 0.8413 GB, free: 2.398 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.2395, allocations: 0 / 0.8413 GB, free: 2.398 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.2407, allocations: 0.8148 MB / 0.8421 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.2407, allocations: 0 / 0.8421 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.2409, allocations: 51.91 kB / 0.8421 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.241, allocations: 4 kB / 0.8421 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.241, allocations: 11.94 kB / 0.8421 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.241, allocations: 4 kB / 0.8422 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.241, allocations: 0 / 0.8422 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008225/0.2418, allocations: 0.5209 MB / 0.8427 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.242, allocations: 140.8 kB / 0.8428 GB, free: 0.7617 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.518e-05/0.242, allocations: 8 kB / 0.8428 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.2422, allocations: 15.98 kB / 0.8428 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.67e-05/0.2423, allocations: 23.97 kB / 0.8428 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.2423, allocations: 4.062 kB / 0.8428 GB, free: 0.7109 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000232/0.2426, allocations: 247.2 kB / 0.8431 GB, free: 488 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2426, allocations: 4 kB / 0.8431 GB, free: 484 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003445/0.2429, allocations: 87.78 kB / 0.8432 GB, free: 396 kB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001275/0.2431, allocations: 115.2 kB / 0.8433 GB, free: 272 kB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005515/0.2436, allocations: 268.4 kB / 0.8435 GB, free: 4 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2436, allocations: 0 / 0.8435 GB, free: 4 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.2439, allocations: 132 kB / 0.8437 GB, free: 15.87 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.2445, allocations: 78.31 kB / 0.8437 GB, free: 15.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.2461, allocations: 0.8156 MB / 0.8445 GB, free: 14.96 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004918/0.2466, allocations: 0.8113 MB / 0.8453 GB, free: 14.12 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.000207/0.2469, allocations: 51.23 kB / 0.8454 GB, free: 14.06 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.247, allocations: 27.44 kB / 0.8454 GB, free: 14.04 MB / 0.67 GB Notification: Performance of SimCode: time 5.81e-07/0.247, allocations: 7.938 kB / 0.8454 GB, free: 14.03 MB / 0.67 GB Notification: Performance of Templates: time 0.008226/0.2552, allocations: 3.701 MB / 0.849 GB, free: 10.36 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)