Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001342/0.001343, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9876/0.9876, allocations: 143.3 MB / 434.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003326/0.0003326, allocations: 8 kB / 0.5158 GB, free: 11.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1761/0.1764, allocations: 83.41 MB / 0.5973 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.002939/0.1794, allocations: 2.483 MB / 0.5997 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.1809, allocations: 0.8383 MB / 0.6005 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.1811, allocations: 11.94 kB / 0.6005 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.099e-05/0.1812, allocations: 31.64 kB / 0.6006 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003889/0.1816, allocations: 111.6 kB / 0.6007 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.1819, allocations: 159.4 kB / 0.6008 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004006/0.1823, allocations: 300 kB / 0.6011 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.1826, allocations: 153 kB / 0.6013 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.1828, allocations: 135.3 kB / 0.6014 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.183, allocations: 127.2 kB / 0.6015 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.1831, allocations: 8 kB / 0.6015 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 3.623e-05/0.1831, allocations: 12 kB / 0.6015 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.14e-05/0.1832, allocations: 55.75 kB / 0.6016 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.1832, allocations: 89.45 kB / 0.6017 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003384/0.1836, allocations: 407.2 kB / 0.6021 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1836, allocations: 0 / 0.6021 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1836, allocations: 0 / 0.6021 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.238e-06/0.1836, allocations: 0 / 0.6021 GB, free: 2.891 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0009603/0.1846, allocations: 0.6466 MB / 0.6027 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.1846, allocations: 12.03 kB / 0.6027 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.443e-05/0.1847, allocations: 47.44 kB / 0.6027 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005594/0.1853, allocations: 383.3 kB / 0.6031 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.1853, allocations: 20.66 kB / 0.6031 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.888e-05/0.1854, allocations: 24 kB / 0.6031 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.1859, allocations: 341.1 kB / 0.6035 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1859, allocations: 0 / 0.6035 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.282e-05/0.186, allocations: 12 kB / 0.6035 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.186, allocations: 8 kB / 0.6035 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.1864, allocations: 218.1 kB / 0.6037 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3407/0.5271, allocations: 1.193 MB / 0.6049 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006964/0.5279, allocations: 237.5 kB / 0.6051 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.5279, allocations: 3.812 kB / 0.6051 GB, free: 40.44 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.5279, allocations: 36.53 kB / 0.6051 GB, free: 40.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 2.765e-06/0.5279, allocations: 0 / 0.6051 GB, free: 40.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22): time 0.0006971/0.5286, allocations: 298.7 kB / 0.6054 GB, free: 40.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/0.5287, allocations: 110.5 kB / 0.6055 GB, free: 40.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003022/0.529, allocations: 334.9 kB / 0.6058 GB, free: 40.13 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.5291, allocations: 32.23 kB / 0.6059 GB, free: 40.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.5292, allocations: 222.7 kB / 0.6061 GB, free: 40 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.5292, allocations: 74.56 kB / 0.6062 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.178e-05/0.5293, allocations: 4.25 kB / 0.6062 GB, free: 39.96 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.968e-05/0.5294, allocations: 348.9 kB / 0.6065 GB, free: 39.65 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.5295, allocations: 76.66 kB / 0.6066 GB, free: 39.65 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.5297, allocations: 147.6 kB / 0.6067 GB, free: 39.58 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.5299, allocations: 84.77 kB / 0.6068 GB, free: 39.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5299, allocations: 4.156 kB / 0.6068 GB, free: 39.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004331/0.5303, allocations: 281.6 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5304, allocations: 6.031 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.5304, allocations: 3.469 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.5304, allocations: 2.531 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.5306, allocations: 54.72 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.5307, allocations: 7.766 kB / 0.6071 GB, free: 39.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.5309, allocations: 37.48 kB / 0.6072 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.5309, allocations: 11.31 kB / 0.6072 GB, free: 39.52 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0001594/0.5311, allocations: 168.1 kB / 0.6073 GB, free: 39.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.368e-05/0.5311, allocations: 35.81 kB / 0.6074 GB, free: 39.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.103e-05/0.5312, allocations: 44.02 kB / 0.6074 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.5312, allocations: 0 / 0.6074 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5312, allocations: 2.688 kB / 0.6074 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.5312, allocations: 0 / 0.6074 GB, free: 39.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003581/0.5316, allocations: 393.8 kB / 0.6078 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.5316, allocations: 0.9375 kB / 0.6078 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.5318, allocations: 48.61 kB / 0.6078 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.5318, allocations: 4.828 kB / 0.6078 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.5319, allocations: 12.95 kB / 0.6079 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.5319, allocations: 0 / 0.6079 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.5319, allocations: 7.031 kB / 0.6079 GB, free: 39.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005803/0.5325, allocations: 421.8 kB / 0.6083 GB, free: 39.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.123e-05/0.5326, allocations: 125.8 kB / 0.6084 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.5326, allocations: 10.7 kB / 0.6084 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.5328, allocations: 29.19 kB / 0.6084 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.5329, allocations: 17.23 kB / 0.6084 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/0.5329, allocations: 6.906 kB / 0.6084 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001805/0.5331, allocations: 234.2 kB / 0.6087 GB, free: 38.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5331, allocations: 0 / 0.6087 GB, free: 38.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003084/0.5334, allocations: 72.19 kB / 0.6087 GB, free: 38.81 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 9.809e-05/0.5335, allocations: 112.6 kB / 0.6088 GB, free: 38.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00041/0.5339, allocations: 200.2 kB / 0.609 GB, free: 38.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5339, allocations: 3.906 kB / 0.609 GB, free: 38.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.5341, allocations: 103.2 kB / 0.6091 GB, free: 38.72 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004587/0.5346, allocations: 68.33 kB / 0.6092 GB, free: 38.72 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.5357, allocations: 0.8361 MB / 0.61 GB, free: 38.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.5359, allocations: 0.8079 MB / 0.6108 GB, free: 37.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001361/0.5361, allocations: 40.25 kB / 0.6108 GB, free: 37.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.895e-05/0.5362, allocations: 24.66 kB / 0.6109 GB, free: 37.55 MB / 0.4981 GB Notification: Performance of SimCode: time 1.923e-06/0.5362, allocations: 0 / 0.6109 GB, free: 37.55 MB / 0.4981 GB Notification: Performance of Templates: time 0.006111/0.5423, allocations: 2.853 MB / 0.6137 GB, free: 37.4 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: