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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7541/0.7541, allocations: 128.8 MB / 143.8 MB, free: 2.289 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.001071/0.001071, allocations: 186.8 kB / 173.9 MB, free: 6.109 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.61/1.61, allocations: 205.4 MB / 409.1 MB, free: 10.48 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.0007596/0.0007597, allocations: 90 kB / 486.7 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003338, allocations: 12.47 kB / 0.5604 GB, free: 97.55 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1768, allocations: 76.76 MB / 0.6354 GB, free: 30.53 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.002979/0.1798, allocations: 2.675 MB / 0.638 GB, free: 27.83 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001861/0.1817, allocations: 0.983 MB / 0.639 GB, free: 26.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004726/0.1822, allocations: 19.94 kB / 0.639 GB, free: 26.82 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000232/0.1824, allocations: 43.58 kB / 0.639 GB, free: 26.78 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.1827, allocations: 71.34 kB / 0.6391 GB, free: 26.71 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.1833, allocations: 179.5 kB / 0.6393 GB, free: 26.54 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.1837, allocations: 0.4919 MB / 0.6398 GB, free: 26.04 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003103/0.184, allocations: 175.7 kB / 0.6399 GB, free: 25.88 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.1842, allocations: 143.2 kB / 0.6401 GB, free: 25.73 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.1844, allocations: 151 kB / 0.6402 GB, free: 25.59 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.1845, allocations: 16 kB / 0.6402 GB, free: 25.57 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.821e-05/0.1845, allocations: 12 kB / 0.6402 GB, free: 25.56 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.571e-05/0.1846, allocations: 59.69 kB / 0.6403 GB, free: 25.5 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.405e-05/0.1846, allocations: 105.4 kB / 0.6404 GB, free: 25.39 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.1849, allocations: 455.1 kB / 0.6408 GB, free: 24.95 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.659e-06/0.1849, allocations: 4 kB / 0.6408 GB, free: 24.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.185, allocations: 0 / 0.6408 GB, free: 24.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.185, allocations: 0 / 0.6408 GB, free: 24.94 MB / 442.7 MB 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.001119/0.1861, allocations: 0.6958 MB / 0.6415 GB, free: 24.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1861, allocations: 8.031 kB / 0.6415 GB, free: 24.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.29e-05/0.1862, allocations: 59.3 kB / 0.6416 GB, free: 24.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.1868, allocations: 407.6 kB / 0.642 GB, free: 23.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.1868, allocations: 33 kB / 0.642 GB, free: 23.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.1869, allocations: 36 kB / 0.642 GB, free: 23.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006112/0.1875, allocations: 397.6 kB / 0.6424 GB, free: 23.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.1875, allocations: 4 kB / 0.6424 GB, free: 23.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.1876, allocations: 20 kB / 0.6424 GB, free: 23.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1876, allocations: 11.95 kB / 0.6424 GB, free: 23.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.1881, allocations: 263.8 kB / 0.6427 GB, free: 22.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.1896, allocations: 1.344 MB / 0.644 GB, free: 21.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.1902, allocations: 312.8 kB / 0.6443 GB, free: 21.19 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.1905, allocations: 136.8 kB / 0.6444 GB, free: 21.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.1905, allocations: 8 kB / 0.6444 GB, free: 21.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003423/0.1908, allocations: 177.5 kB / 0.6446 GB, free: 20.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 2.024e-06/0.1909, allocations: 0 / 0.6446 GB, free: 20.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.000728/0.1916, allocations: 385.8 kB / 0.645 GB, free: 20.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.1916, allocations: 85.05 kB / 0.6451 GB, free: 20.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.1919, allocations: 353.5 kB / 0.6454 GB, free: 20.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.192, allocations: 37.7 kB / 0.6454 GB, free: 19.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.1921, allocations: 248.8 kB / 0.6457 GB, free: 19.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.758e-05/0.1922, allocations: 94.56 kB / 0.6458 GB, free: 19.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.1922, allocations: 8 kB / 0.6458 GB, free: 19.62 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.808e-05/0.1923, allocations: 350.8 kB / 0.6461 GB, free: 19.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1925, allocations: 104.7 kB / 0.6462 GB, free: 19.17 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.1927, allocations: 168.6 kB / 0.6464 GB, free: 18.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.1929, allocations: 113.6 kB / 0.6465 GB, free: 18.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1929, allocations: 0 / 0.6465 GB, free: 18.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000535/0.1935, allocations: 354.9 kB / 0.6468 GB, free: 18.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.135e-05/0.1936, allocations: 142.2 kB / 0.6469 GB, free: 18.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1936, allocations: 4 kB / 0.6469 GB, free: 18.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.1936, allocations: 0 / 0.6469 GB, free: 18.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.1939, allocations: 71.86 kB / 0.647 GB, free: 18.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1939, allocations: 7.938 kB / 0.647 GB, free: 18.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1941, allocations: 43.67 kB / 0.6471 GB, free: 18.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.1941, allocations: 16 kB / 0.6471 GB, free: 18.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.74e-06/0.1941, allocations: 4 kB / 0.6471 GB, free: 18.21 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004123/0.1946, allocations: 276 kB / 0.6473 GB, free: 17.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.1946, allocations: 0 / 0.6473 GB, free: 17.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.028e-06/0.1946, allocations: 4 kB / 0.6473 GB, free: 17.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.1948, allocations: 68.09 kB / 0.6474 GB, free: 17.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.1948, allocations: 11.94 kB / 0.6474 GB, free: 17.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002169/0.195, allocations: 35.73 kB / 0.6475 GB, free: 17.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.1951, allocations: 12 kB / 0.6475 GB, free: 17.81 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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.greaterEqualThreshold.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002146/0.1953, allocations: 260.9 kB / 0.6477 GB, free: 17.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.1953, allocations: 35.53 kB / 0.6478 GB, free: 17.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.715e-05/0.1955, allocations: 52.23 kB / 0.6478 GB, free: 17.46 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1955, allocations: 0 / 0.6478 GB, free: 17.46 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.1955, allocations: 4 kB / 0.6478 GB, free: 17.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1955, allocations: 0 / 0.6478 GB, free: 17.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.1966, allocations: 0.8192 MB / 0.6486 GB, free: 16.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1966, allocations: 4 kB / 0.6486 GB, free: 16.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.1968, allocations: 47.91 kB / 0.6487 GB, free: 16.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.1968, allocations: 0 / 0.6487 GB, free: 16.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.1969, allocations: 8 kB / 0.6487 GB, free: 16.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1969, allocations: 0 / 0.6487 GB, free: 16.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1969, allocations: 0 / 0.6487 GB, free: 16.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007447/0.1976, allocations: 0.5182 MB / 0.6492 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.1978, allocations: 140.6 kB / 0.6493 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.07e-05/0.1978, allocations: 7.984 kB / 0.6493 GB, free: 15.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001842/0.198, allocations: 19.98 kB / 0.6493 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.413e-05/0.1981, allocations: 28.03 kB / 0.6494 GB, free: 15.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.1981, allocations: 19.92 kB / 0.6494 GB, free: 15.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001994/0.1983, allocations: 239.2 kB / 0.6496 GB, free: 15.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.1983, allocations: 4 kB / 0.6496 GB, free: 15.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004419/0.1988, allocations: 151.4 kB / 0.6498 GB, free: 15.37 MB / 442.7 MB 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 (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.0001486/0.1989, allocations: 113.4 kB / 0.6499 GB, free: 15.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007368/0.1997, allocations: 431.5 kB / 0.6503 GB, free: 14.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1997, allocations: 0 / 0.6503 GB, free: 14.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002415/0.1999, allocations: 137.1 kB / 0.6504 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.2006, allocations: 89.39 kB / 0.6505 GB, free: 14.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.2024, allocations: 0.9705 MB / 0.6514 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/0.2031, allocations: 0.8159 MB / 0.6522 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.2033, allocations: 51.25 kB / 0.6523 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.673e-05/0.2034, allocations: 31.42 kB / 0.6523 GB, free: 12.69 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2034, allocations: 0 / 0.6523 GB, free: 12.69 MB / 442.7 MB Notification: Performance of Templates: time 0.007285/0.2107, allocations: 3.533 MB / 0.6558 GB, free: 9.184 MB / 442.7 MB 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)