Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_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.001557/0.001557, allocations: 109.5 kB / 17.04 MB, free: 6.074 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.001886/0.001886, allocations: 196 kB / 17.98 MB, free: 5.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7008/0.7008, allocations: 115.1 MB / 406.9 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 59.91 kB / 494.8 MB, free: 15.92 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3311, allocations: 76.15 MB / 0.5576 GB, free: 36.9 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003733/0.3349, allocations: 2.968 MB / 0.5605 GB, free: 34.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.3363, allocations: 0.9029 MB / 0.5613 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.3365, allocations: 14.12 kB / 0.5614 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.3367, allocations: 69.47 kB / 0.5614 GB, free: 34.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001693/0.3369, allocations: 89.08 kB / 0.5615 GB, free: 34.06 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005269/0.3374, allocations: 216.4 kB / 0.5617 GB, free: 33.94 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005366/0.338, allocations: 0.4889 MB / 0.5622 GB, free: 33.68 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004028/0.3384, allocations: 219.2 kB / 0.5624 GB, free: 33.58 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.3387, allocations: 174.4 kB / 0.5626 GB, free: 33.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.3389, allocations: 180.1 kB / 0.5627 GB, free: 33.38 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.09e-05/0.339, allocations: 43.56 kB / 0.5628 GB, free: 33.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.256e-05/0.3391, allocations: 43.38 kB / 0.5628 GB, free: 33.38 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.39e-05/0.3392, allocations: 87.83 kB / 0.5629 GB, free: 33.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001917/0.3394, allocations: 213.6 kB / 0.5631 GB, free: 33.16 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006386/0.34, allocations: 0.5011 MB / 0.5636 GB, free: 32.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.34, allocations: 5.984 kB / 0.5636 GB, free: 32.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.34, allocations: 0 / 0.5636 GB, free: 32.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3401, allocations: 0 / 0.5636 GB, free: 32.94 MB / 446.1 MB 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.001161/0.3412, allocations: 0.7152 MB / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.3413, allocations: 9.062 kB / 0.5643 GB, free: 32.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.842e-05/0.3414, allocations: 49.94 kB / 0.5644 GB, free: 32.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.342, allocations: 398.1 kB / 0.5647 GB, free: 32.03 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.342, allocations: 25.59 kB / 0.5648 GB, free: 32.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.656e-05/0.3421, allocations: 31.56 kB / 0.5648 GB, free: 32.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.3426, allocations: 342.3 kB / 0.5651 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3427, allocations: 1.375 kB / 0.5651 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.3427, allocations: 10.31 kB / 0.5651 GB, free: 31.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.3427, allocations: 8.031 kB / 0.5651 GB, free: 31.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.3432, allocations: 218.8 kB / 0.5654 GB, free: 31.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.3446, allocations: 1.181 MB / 0.5665 GB, free: 30.87 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005371/0.3451, allocations: 232.4 kB / 0.5667 GB, free: 30.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.3453, allocations: 115.2 kB / 0.5668 GB, free: 30.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.3454, allocations: 7.469 kB / 0.5668 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.3454, allocations: 32.47 kB / 0.5669 GB, free: 30.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.3454, allocations: 1.062 kB / 0.5669 GB, free: 30.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006274/0.346, allocations: 291.3 kB / 0.5672 GB, free: 30.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.3461, allocations: 108 kB / 0.5673 GB, free: 30.42 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3464, allocations: 340.6 kB / 0.5676 GB, free: 30.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3465, allocations: 31.05 kB / 0.5676 GB, free: 30.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.3466, allocations: 223.5 kB / 0.5678 GB, free: 30.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.3467, allocations: 83.19 kB / 0.5679 GB, free: 29.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.75e-05/0.3467, allocations: 50.77 kB / 0.568 GB, free: 29.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.315e-05/0.3468, allocations: 345.8 kB / 0.5683 GB, free: 29.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.347, allocations: 77.75 kB / 0.5684 GB, free: 29.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/0.3472, allocations: 139.2 kB / 0.5685 GB, free: 29.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.3476, allocations: 214.5 kB / 0.5687 GB, free: 29.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3476, allocations: 2.406 kB / 0.5687 GB, free: 29.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005046/0.3481, allocations: 285.1 kB / 0.569 GB, free: 29.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3481, allocations: 8.094 kB / 0.569 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3482, allocations: 1.156 kB / 0.569 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.3482, allocations: 8.703 kB / 0.569 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.3484, allocations: 52.89 kB / 0.569 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3484, allocations: 7.438 kB / 0.569 GB, free: 29.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001872/0.3486, allocations: 28.86 kB / 0.5691 GB, free: 29.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.3487, allocations: 12.78 kB / 0.5691 GB, free: 29.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.3488, allocations: 159.4 kB / 0.5692 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.929e-05/0.3489, allocations: 36.77 kB / 0.5693 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.474e-05/0.349, allocations: 41.97 kB / 0.5693 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.349, allocations: 2.719 kB / 0.5693 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.349, allocations: 1.281 kB / 0.5693 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.349, allocations: 2.375 kB / 0.5693 GB, free: 28.97 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.3494, allocations: 395.8 kB / 0.5697 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3494, allocations: 0 / 0.5697 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/0.3496, allocations: 46.44 kB / 0.5697 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3497, allocations: 4.062 kB / 0.5697 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.3497, allocations: 2.391 kB / 0.5697 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3497, allocations: 1.281 kB / 0.5697 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3497, allocations: 0.6094 kB / 0.5697 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006686/0.3504, allocations: 432 kB / 0.5702 GB, free: 28.42 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.3505, allocations: 130.9 kB / 0.5703 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.3506, allocations: 7.125 kB / 0.5703 GB, free: 28.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.3507, allocations: 20.94 kB / 0.5703 GB, free: 28.28 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.111e-05/0.3508, allocations: 20.3 kB / 0.5703 GB, free: 28.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.3509, allocations: 6.625 kB / 0.5703 GB, free: 28.28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.3511, allocations: 241.1 kB / 0.5706 GB, free: 28.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3511, allocations: 0 / 0.5706 GB, free: 28.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003541/0.3515, allocations: 61.66 kB / 0.5706 GB, free: 28.14 MB / 446.1 MB 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 (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.0001106/0.3516, allocations: 106.9 kB / 0.5707 GB, free: 28.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004752/0.3521, allocations: 201.3 kB / 0.5709 GB, free: 27.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3521, allocations: 1.469 kB / 0.5709 GB, free: 27.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.3523, allocations: 99.56 kB / 0.571 GB, free: 27.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.3528, allocations: 81.97 kB / 0.5711 GB, free: 27.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.3542, allocations: 0.7012 MB / 0.5718 GB, free: 27.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.3544, allocations: 0.7901 MB / 0.5725 GB, free: 26.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.3546, allocations: 36.16 kB / 0.5726 GB, free: 26.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.708e-05/0.3547, allocations: 26.34 kB / 0.5726 GB, free: 26.81 MB / 446.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3547, allocations: 3.938 kB / 0.5726 GB, free: 26.8 MB / 446.1 MB Notification: Performance of Templates: time 0.00837/0.3631, allocations: 3.19 MB / 0.5757 GB, free: 26.57 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)