Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") 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 2.108/2.108, allocations: 297.4 MB / 312.6 MB, free: 2.91 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.001093/0.001092, allocations: 189.1 kB / 382.3 MB, free: 14.82 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.775/1.775, allocations: 225.7 MB / 0.6617 GB, free: 7.238 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.0008364/0.0008365, allocations: 98.66 kB / 0.7789 GB, free: 46.88 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004946, allocations: 8 kB / 0.9058 GB, free: 4.938 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7679/0.7685, allocations: 119.2 MB / 1.022 GB, free: 57.72 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008505/0.7694, allocations: 392 kB / 1.023 GB, free: 57.57 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.7708, allocations: 1.11 MB / 1.024 GB, free: 56.95 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.56e-05/0.7708, allocations: 3.938 kB / 1.024 GB, free: 56.95 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.16e-05/0.7708, allocations: 0 / 1.024 GB, free: 56.95 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.15e-05/0.7709, allocations: 9.969 kB / 1.024 GB, free: 56.94 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002332/0.7712, allocations: 27.41 kB / 1.024 GB, free: 56.93 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 7.317e-05/0.7712, allocations: 48.84 kB / 1.024 GB, free: 56.91 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.894e-05/0.7713, allocations: 18.97 kB / 1.024 GB, free: 56.91 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.01e-05/0.7714, allocations: 14.66 kB / 1.024 GB, free: 56.9 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.455e-05/0.7715, allocations: 14.8 kB / 1.024 GB, free: 56.89 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.7715, allocations: 3.406 kB / 1.024 GB, free: 56.89 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.5e-05/0.7716, allocations: 16.27 kB / 1.024 GB, free: 56.89 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.902e-05/0.7716, allocations: 14.34 kB / 1.024 GB, free: 56.88 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.411e-05/0.7716, allocations: 42.86 kB / 1.024 GB, free: 56.84 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.7718, allocations: 44.61 kB / 1.024 GB, free: 56.84 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.7718, allocations: 6.875 kB / 1.024 GB, free: 56.83 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.844e-06/0.7718, allocations: 0 / 1.024 GB, free: 56.83 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.7718, allocations: 0 / 1.024 GB, free: 56.83 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000526/0.7723, allocations: 364.7 kB / 1.024 GB, free: 56.47 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.7724, allocations: 9.969 kB / 1.024 GB, free: 56.47 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.7724, allocations: 8.281 kB / 1.024 GB, free: 56.46 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.493e-05/0.7725, allocations: 172.8 kB / 1.025 GB, free: 56.26 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.7725, allocations: 5.781 kB / 1.025 GB, free: 56.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.7725, allocations: 7.625 kB / 1.025 GB, free: 56.25 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.7727, allocations: 71.36 kB / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.7728, allocations: 192 / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.7728, allocations: 5.812 kB / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.7728, allocations: 1.406 kB / 1.025 GB, free: 56.21 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.773, allocations: 55.33 kB / 1.025 GB, free: 56.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003457/0.7733, allocations: 266.5 kB / 1.025 GB, free: 55.93 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001549/0.7735, allocations: 74.78 kB / 1.025 GB, free: 55.89 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.902e-05/0.7736, allocations: 35.59 kB / 1.025 GB, free: 55.88 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.7736, allocations: 2.422 kB / 1.025 GB, free: 55.88 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.7738, allocations: 79.19 kB / 1.025 GB, free: 55.82 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.7738, allocations: 1.156 kB / 1.025 GB, free: 55.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0003986/0.7742, allocations: 139.2 kB / 1.025 GB, free: 55.77 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.7743, allocations: 54.72 kB / 1.025 GB, free: 55.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.826e-05/0.7744, allocations: 111.9 kB / 1.025 GB, free: 55.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.546e-06/0.7744, allocations: 25.7 kB / 1.025 GB, free: 55.57 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.391e-05/0.7744, allocations: 82.66 kB / 1.025 GB, free: 55.48 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.7744, allocations: 22.56 kB / 1.026 GB, free: 55.47 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.7744, allocations: 1.406 kB / 1.026 GB, free: 55.47 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.7745, allocations: 318.2 kB / 1.026 GB, free: 55.15 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.866e-05/0.7746, allocations: 28.09 kB / 1.026 GB, free: 55.15 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.7747, allocations: 54.14 kB / 1.026 GB, free: 55.11 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.7749, allocations: 95.44 kB / 1.026 GB, free: 55.06 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.7749, allocations: 0 / 1.026 GB, free: 55.06 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002438/0.7752, allocations: 120.3 kB / 1.026 GB, free: 55 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7752, allocations: 13.06 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.7752, allocations: 1.375 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.7752, allocations: 1.219 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.7753, allocations: 17.45 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.7753, allocations: 5.188 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.517e-05/0.7754, allocations: 10.78 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.7754, allocations: 1.875 kB / 1.026 GB, free: 54.99 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 5.894e-05/0.7755, allocations: 120.5 kB / 1.026 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.7755, allocations: 2.109 kB / 1.026 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.7758, allocations: 123.8 kB / 1.026 GB, free: 54.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.7758, allocations: 1.375 kB / 1.026 GB, free: 54.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.7758, allocations: 4.641 kB / 1.026 GB, free: 54.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.7758, allocations: 0 / 1.026 GB, free: 54.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.7762, allocations: 370.6 kB / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.7762, allocations: 0 / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.7763, allocations: 11.39 kB / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.7763, allocations: 3.609 kB / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.7763, allocations: 1.375 kB / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.7763, allocations: 0.7031 kB / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.7763, allocations: 0 / 1.027 GB, free: 54.47 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.7766, allocations: 205 kB / 1.027 GB, free: 54.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.862e-05/0.7766, allocations: 83.14 kB / 1.027 GB, free: 54.22 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.7766, allocations: 8.078 kB / 1.027 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.319e-05/0.7767, allocations: 12.62 kB / 1.027 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.7767, allocations: 4.766 kB / 1.027 GB, free: 54.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.7768, allocations: 8.766 kB / 1.027 GB, free: 54.21 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.441e-05/0.7768, allocations: 88.36 kB / 1.027 GB, free: 54.12 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7768, allocations: 1.156 kB / 1.027 GB, free: 54.12 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00021/0.777, allocations: 14.59 kB / 1.027 GB, free: 54.12 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001148/0.7771, allocations: 110.2 kB / 1.027 GB, free: 54.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.7774, allocations: 79.16 kB / 1.027 GB, free: 54.02 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7774, allocations: 1.344 kB / 1.027 GB, free: 54.02 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.7775, allocations: 38.19 kB / 1.027 GB, free: 54.01 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.7777, allocations: 16.81 kB / 1.027 GB, free: 54 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002604/0.778, allocations: 132.5 kB / 1.028 GB, free: 53.88 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.809e-05/0.7781, allocations: 0.6805 MB / 1.028 GB, free: 53.18 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.008e-05/0.7782, allocations: 15.95 kB / 1.028 GB, free: 53.18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.7782, allocations: 8.719 kB / 1.028 GB, free: 53.17 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.7782, allocations: 0 / 1.028 GB, free: 53.17 MB / 0.698 GB Notification: Performance of Templates: time 0.002572/0.7808, allocations: 0.7009 MB / 1.029 GB, free: 53.1 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)