Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.857/1.857, allocations: 297.4 MB / 312.6 MB, free: 2.93 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 182 kB / 382.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.721/1.721, allocations: 225.7 MB / 0.6617 GB, free: 7.25 MB / 490.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008714/0.0008714, allocations: 98.89 kB / 0.7789 GB, free: 46.82 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0005653/0.0005654, allocations: 8 kB / 0.9058 GB, free: 4.945 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5642/0.5648, allocations: 119.2 MB / 1.022 GB, free: 57.75 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.002964/0.5678, allocations: 2.541 MB / 1.025 GB, free: 56.39 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.5692, allocations: 0.8568 MB / 1.026 GB, free: 55.79 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002061/0.5694, allocations: 12.56 kB / 1.026 GB, free: 55.78 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.5696, allocations: 48.16 kB / 1.026 GB, free: 55.75 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.5698, allocations: 75.92 kB / 1.026 GB, free: 55.7 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.5703, allocations: 196.9 kB / 1.026 GB, free: 55.57 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0004135/0.5707, allocations: 450.7 kB / 1.026 GB, free: 55.36 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003065/0.571, allocations: 200.4 kB / 1.027 GB, free: 55.27 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.5712, allocations: 129.4 kB / 1.027 GB, free: 55.2 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.5714, allocations: 135.3 kB / 1.027 GB, free: 55.13 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 3.884e-05/0.5714, allocations: 12.22 kB / 1.027 GB, free: 55.13 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 3.467e-05/0.5714, allocations: 10.72 kB / 1.027 GB, free: 55.13 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.903e-05/0.5715, allocations: 61.34 kB / 1.027 GB, free: 55.09 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.5716, allocations: 182.3 kB / 1.027 GB, free: 54.95 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0003379/0.572, allocations: 456.5 kB / 1.027 GB, free: 54.8 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.572, allocations: 1.562 kB / 1.027 GB, free: 54.8 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.883e-06/0.572, allocations: 0 / 1.027 GB, free: 54.8 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.572, allocations: 1.062 kB / 1.027 GB, free: 54.8 MB / 0.698 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.0008205/0.5728, allocations: 0.6379 MB / 1.028 GB, free: 54.29 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.5729, allocations: 8.25 kB / 1.028 GB, free: 54.29 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.15e-05/0.5729, allocations: 50.97 kB / 1.028 GB, free: 54.26 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.5734, allocations: 398.1 kB / 1.029 GB, free: 53.95 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.5734, allocations: 24.06 kB / 1.029 GB, free: 53.94 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.5735, allocations: 30.94 kB / 1.029 GB, free: 53.93 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.574, allocations: 339.6 kB / 1.029 GB, free: 53.73 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.574, allocations: 1.766 kB / 1.029 GB, free: 53.73 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.574, allocations: 12.72 kB / 1.029 GB, free: 53.73 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.5741, allocations: 6.531 kB / 1.029 GB, free: 53.73 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004142/0.5745, allocations: 221.2 kB / 1.029 GB, free: 53.65 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.5758, allocations: 1.195 MB / 1.03 GB, free: 52.78 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.5763, allocations: 236.6 kB / 1.031 GB, free: 52.67 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.5765, allocations: 116.1 kB / 1.031 GB, free: 52.62 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.5765, allocations: 6.75 kB / 1.031 GB, free: 52.62 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.5765, allocations: 40.25 kB / 1.031 GB, free: 52.57 MB / 0.698 GB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.5765, allocations: 0 / 1.031 GB, free: 52.57 MB / 0.698 GB Notification: Performance of matching and sorting (n=22): time 0.0005897/0.5771, allocations: 295.7 kB / 1.031 GB, free: 52.44 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.5772, allocations: 113.3 kB / 1.031 GB, free: 52.31 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.5775, allocations: 342.8 kB / 1.031 GB, free: 52.12 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.5775, allocations: 29.7 kB / 1.031 GB, free: 52.09 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.5776, allocations: 227.5 kB / 1.032 GB, free: 51.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.5777, allocations: 79.45 kB / 1.032 GB, free: 51.84 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.5777, allocations: 4 kB / 1.032 GB, free: 51.84 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.5778, allocations: 340.4 kB / 1.032 GB, free: 51.51 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.5779, allocations: 77.08 kB / 1.032 GB, free: 51.48 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.5781, allocations: 145.9 kB / 1.032 GB, free: 51.38 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/0.5785, allocations: 214.9 kB / 1.032 GB, free: 51.25 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.5785, allocations: 0 / 1.032 GB, free: 51.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004511/0.5789, allocations: 283.7 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.579, allocations: 4.312 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.579, allocations: 6.406 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.579, allocations: 2.875 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.5792, allocations: 53.31 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.5792, allocations: 8.266 kB / 1.033 GB, free: 51.11 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.5794, allocations: 39.39 kB / 1.033 GB, free: 51.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.5794, allocations: 6.438 kB / 1.033 GB, free: 51.09 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.5796, allocations: 169.9 kB / 1.033 GB, free: 50.94 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.879e-05/0.5796, allocations: 32.03 kB / 1.033 GB, free: 50.92 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.5797, allocations: 41.23 kB / 1.033 GB, free: 50.89 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.5797, allocations: 2.562 kB / 1.033 GB, free: 50.89 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5797, allocations: 0 / 1.033 GB, free: 50.89 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.5797, allocations: 4.625 kB / 1.033 GB, free: 50.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003347/0.5801, allocations: 393.8 kB / 1.033 GB, free: 50.61 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5801, allocations: 3.75 kB / 1.033 GB, free: 50.61 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.5803, allocations: 47.06 kB / 1.034 GB, free: 50.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.5803, allocations: 0 / 1.034 GB, free: 50.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.5803, allocations: 4.938 kB / 1.034 GB, free: 50.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.5803, allocations: 1.406 kB / 1.034 GB, free: 50.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5803, allocations: 4 kB / 1.034 GB, free: 50.59 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005799/0.5809, allocations: 437.6 kB / 1.034 GB, free: 50.34 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.722e-05/0.581, allocations: 127.1 kB / 1.034 GB, free: 50.21 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.5811, allocations: 7.672 kB / 1.034 GB, free: 50.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.5813, allocations: 25.02 kB / 1.034 GB, free: 50.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.828e-05/0.5813, allocations: 19.61 kB / 1.034 GB, free: 50.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.5813, allocations: 8.469 kB / 1.034 GB, free: 50.19 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000201/0.5816, allocations: 241.2 kB / 1.034 GB, free: 50.06 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5816, allocations: 0 / 1.034 GB, free: 50.06 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002959/0.5819, allocations: 69 kB / 1.034 GB, free: 50.04 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.636e-05/0.582, allocations: 116.5 kB / 1.035 GB, free: 49.94 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003921/0.5824, allocations: 203.9 kB / 1.035 GB, free: 49.87 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.5824, allocations: 0 / 1.035 GB, free: 49.87 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.5826, allocations: 102.5 kB / 1.035 GB, free: 49.84 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.5831, allocations: 77.86 kB / 1.035 GB, free: 49.81 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.5842, allocations: 0.8773 MB / 1.036 GB, free: 49.24 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.5844, allocations: 0.7915 MB / 1.037 GB, free: 48.54 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001625/0.5846, allocations: 40.83 kB / 1.037 GB, free: 48.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.831e-05/0.5846, allocations: 28.17 kB / 1.037 GB, free: 48.53 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.5846, allocations: 0 / 1.037 GB, free: 48.53 MB / 0.698 GB Notification: Performance of Templates: time 0.006186/0.5908, allocations: 2.954 MB / 1.039 GB, free: 48.33 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)