Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7744/0.7744, allocations: 127.4 MB / 134.6 MB, free: 4.059 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 185.3 kB / 164.4 MB, free: 6.875 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.1 MB / 399.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001076, allocations: 88.19 kB / 476.3 MB, free: 8.852 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.474e-06, allocations: 0 / 0.546 GB, free: 42.73 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1704, allocations: 76.75 MB / 0.6209 GB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4156/0.5861, allocations: 110.1 MB / 0.7284 GB, free: 2.234 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.5864, allocations: 79.95 kB / 0.7285 GB, free: 2.156 MB / 490.7 MB Notification: Performance of FrontEnd: time 0.02018/0.6066, allocations: 7.533 MB / 0.7358 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.598e-05/0.6067, allocations: 12 kB / 0.7358 GB, free: 10.61 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001381/0.6081, allocations: 0.6522 MB / 0.7365 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.6081, allocations: 12.03 kB / 0.7365 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.6084, allocations: 55.34 kB / 0.7365 GB, free: 9.844 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008412/0.6092, allocations: 403.4 kB / 0.7369 GB, free: 9.41 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.6093, allocations: 12 kB / 0.7369 GB, free: 9.398 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.6093, allocations: 24 kB / 0.737 GB, free: 9.375 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005586/0.6099, allocations: 225.5 kB / 0.7372 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.6105, allocations: 353.8 kB / 0.7375 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.6105, allocations: 0 / 0.7375 GB, free: 8.781 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.6106, allocations: 4.875 kB / 0.7375 GB, free: 8.777 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.6106, allocations: 12 kB / 0.7375 GB, free: 8.766 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.6127, allocations: 1.303 MB / 0.7388 GB, free: 7.398 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.6132, allocations: 213.8 kB / 0.739 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.6134, allocations: 116.8 kB / 0.7391 GB, free: 7.066 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.6135, allocations: 4 kB / 0.7391 GB, free: 7.062 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.6137, allocations: 157.2 kB / 0.7393 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 2.855e-06/0.6137, allocations: 0 / 0.7393 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.0005093/0.6142, allocations: 251.1 kB / 0.7395 GB, free: 6.645 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/0.6143, allocations: 140.4 kB / 0.7397 GB, free: 6.477 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.6147, allocations: 285.9 kB / 0.7399 GB, free: 6.191 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.6147, allocations: 29.7 kB / 0.74 GB, free: 6.156 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.6149, allocations: 188.3 kB / 0.7401 GB, free: 5.965 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.743e-05/0.615, allocations: 99.11 kB / 0.7402 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.615, allocations: 0 / 0.7402 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.6151, allocations: 350.8 kB / 0.7406 GB, free: 5.516 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.6153, allocations: 88 kB / 0.7406 GB, free: 5.43 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.6155, allocations: 155.1 kB / 0.7408 GB, free: 5.254 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.6157, allocations: 97.59 kB / 0.7409 GB, free: 5.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6157, allocations: 0 / 0.7409 GB, free: 5.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004704/0.6162, allocations: 294.2 kB / 0.7412 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.6164, allocations: 457.3 kB / 0.7416 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.6164, allocations: 0 / 0.7416 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.6164, allocations: 4 kB / 0.7416 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003295/0.6168, allocations: 71.91 kB / 0.7417 GB, free: 4.312 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.6168, allocations: 3.906 kB / 0.7417 GB, free: 4.309 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.617, allocations: 43.81 kB / 0.7417 GB, free: 4.266 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.6171, allocations: 16 kB / 0.7417 GB, free: 4.25 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.6171, allocations: 4 kB / 0.7417 GB, free: 4.246 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000381/0.6175, allocations: 224 kB / 0.742 GB, free: 4.027 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.6175, allocations: 4 kB / 0.742 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.782e-06/0.6175, allocations: 0 / 0.742 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.6178, allocations: 59.86 kB / 0.742 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.6178, allocations: 12.11 kB / 0.742 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.618, allocations: 35.67 kB / 0.7421 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.618, allocations: 12 kB / 0.7421 GB, free: 3.906 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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.0001274/0.6182, allocations: 116.9 kB / 0.7422 GB, free: 3.785 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.217e-05/0.6182, allocations: 39.53 kB / 0.7422 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-05/0.6183, allocations: 36.06 kB / 0.7423 GB, free: 3.711 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.6183, allocations: 4 kB / 0.7423 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6184, allocations: 0 / 0.7423 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.6184, allocations: 3.984 kB / 0.7423 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.6194, allocations: 0.7445 MB / 0.743 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.6194, allocations: 0 / 0.743 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.6197, allocations: 63.81 kB / 0.743 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.6197, allocations: 0 / 0.743 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.6198, allocations: 0 / 0.743 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.6198, allocations: 4 kB / 0.7431 GB, free: 2.848 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.6198, allocations: 0 / 0.7431 GB, free: 2.848 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006813/0.6205, allocations: 491.4 kB / 0.7435 GB, free: 2.352 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.6206, allocations: 148.5 kB / 0.7437 GB, free: 2.188 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.752e-05/0.6207, allocations: 4.047 kB / 0.7437 GB, free: 2.184 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.621, allocations: 35.97 kB / 0.7437 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.6211, allocations: 23.95 kB / 0.7437 GB, free: 2.125 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.6211, allocations: 11.91 kB / 0.7437 GB, free: 2.113 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0002225/0.6213, allocations: 212.6 kB / 0.7439 GB, free: 1.906 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000518/0.6219, allocations: 139.5 kB / 0.7441 GB, free: 1.77 MB / 0.4948 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.and3.u1) * Number of discrete states: 1 (con.hys.y) * 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 (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.0001655/0.622, allocations: 111.1 kB / 0.7442 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006449/0.6227, allocations: 390.4 kB / 0.7446 GB, free: 1.273 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6227, allocations: 4.062 kB / 0.7446 GB, free: 1.27 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.6229, allocations: 115.9 kB / 0.7447 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.6234, allocations: 76.16 kB / 0.7447 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.6248, allocations: 0.5711 MB / 0.7453 GB, free: 500 kB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005366/0.6254, allocations: 0.8585 MB / 0.7461 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.723e-06/0.6254, allocations: 4 kB / 0.7461 GB, free: 15.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.01156/0.637, allocations: 5.464 MB / 0.7515 GB, free: 10.16 MB / 0.5105 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)