Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.545/2.545, allocations: 254.9 MB / 269.9 MB, free: 9.637 MB / 218.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.001378/0.001378, allocations: 195.3 kB / 329.5 MB, free: 1.133 MB / 250.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 2.887/2.887, allocations: 225.6 MB / 0.6001 GB, free: 2.199 MB / 426.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.001001/0.001001, allocations: 111.3 kB / 0.7074 GB, free: 7.922 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0005101/0.0005103, allocations: 14.31 kB / 0.8242 GB, free: 124.3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1995, allocations: 109.1 MB / 0.9308 GB, free: 25.1 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001499/0.2011, allocations: 1.084 MB / 0.9318 GB, free: 24.01 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0004862/0.2016, allocations: 219.4 kB / 0.932 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.2017, allocations: 0 / 0.932 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.706e-05/0.2017, allocations: 3.938 kB / 0.932 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.703e-05/0.2018, allocations: 0 / 0.932 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001838/0.202, allocations: 19.92 kB / 0.9321 GB, free: 23.77 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.915e-05/0.2021, allocations: 39.92 kB / 0.9321 GB, free: 23.73 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.499e-05/0.2022, allocations: 11.98 kB / 0.9321 GB, free: 23.72 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.045e-05/0.2022, allocations: 15.92 kB / 0.9321 GB, free: 23.7 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.843e-05/0.2023, allocations: 19.91 kB / 0.9321 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.2023, allocations: 4 kB / 0.9322 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.361e-05/0.2023, allocations: 0 / 0.9322 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.2024, allocations: 4 kB / 0.9322 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 2.77e-05/0.2024, allocations: 33.64 kB / 0.9322 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 7.527e-05/0.2025, allocations: 27.94 kB / 0.9322 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2025, allocations: 4 kB / 0.9322 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2025, allocations: 0 / 0.9322 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.2025, allocations: 0 / 0.9322 GB, free: 23.61 MB / 0.5886 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.0005894/0.2031, allocations: 363.6 kB / 0.9326 GB, free: 23.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2032, allocations: 8.031 kB / 0.9326 GB, free: 23.19 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.621e-05/0.2032, allocations: 8.938 kB / 0.9326 GB, free: 23.18 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.799e-05/0.2033, allocations: 168.4 kB / 0.9327 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.2033, allocations: 4.375 kB / 0.9327 GB, free: 22.98 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.2034, allocations: 8.375 kB / 0.9328 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.2036, allocations: 66.2 kB / 0.9328 GB, free: 22.9 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2037, allocations: 4.125 kB / 0.9328 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.2037, allocations: 3.938 kB / 0.9328 GB, free: 22.89 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2037, allocations: 8 kB / 0.9328 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.204, allocations: 51.95 kB / 0.9329 GB, free: 22.83 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004144/0.2044, allocations: 272.8 kB / 0.9331 GB, free: 22.52 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.2047, allocations: 66.48 kB / 0.9332 GB, free: 22.44 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.2049, allocations: 32.97 kB / 0.9332 GB, free: 22.41 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.2049, allocations: 3.938 kB / 0.9332 GB, free: 22.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.2052, allocations: 87.31 kB / 0.9333 GB, free: 22.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.635e-06/0.2052, allocations: 3.938 kB / 0.9333 GB, free: 22.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0005942/0.2058, allocations: 137.6 kB / 0.9335 GB, free: 22.16 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2058, allocations: 55.41 kB / 0.9335 GB, free: 22.09 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.549e-05/0.2059, allocations: 101.8 kB / 0.9336 GB, free: 21.98 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.2059, allocations: 29.7 kB / 0.9336 GB, free: 21.95 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.206, allocations: 91.98 kB / 0.9337 GB, free: 21.86 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.206, allocations: 15.95 kB / 0.9337 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-06/0.206, allocations: 8 kB / 0.9337 GB, free: 21.83 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 5.866e-05/0.2061, allocations: 310.8 kB / 0.934 GB, free: 21.52 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.2063, allocations: 27.97 kB / 0.9341 GB, free: 21.49 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.2064, allocations: 59.42 kB / 0.9341 GB, free: 21.42 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.2066, allocations: 35.91 kB / 0.9342 GB, free: 21.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2066, allocations: 0 / 0.9342 GB, free: 21.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003775/0.207, allocations: 109.5 kB / 0.9343 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.207, allocations: 8 kB / 0.9343 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.207, allocations: 0 / 0.9343 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.2071, allocations: 3.938 kB / 0.9343 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.2072, allocations: 15.98 kB / 0.9343 GB, free: 21.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.2073, allocations: 8.094 kB / 0.9343 GB, free: 21.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.2074, allocations: 11.98 kB / 0.9343 GB, free: 21.23 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.2074, allocations: 4 kB / 0.9343 GB, free: 21.22 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.831e-05/0.2075, allocations: 121.7 kB / 0.9344 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.2075, allocations: 7.906 kB / 0.9344 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004099/0.2079, allocations: 118 kB / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.208, allocations: 0 / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.208, allocations: 0 / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.208, allocations: 3.984 kB / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.2086, allocations: 362.5 kB / 0.9349 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.2086, allocations: 0 / 0.9349 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.2087, allocations: 12.61 kB / 0.9349 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2087, allocations: 0 / 0.9349 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2087, allocations: 4 kB / 0.9349 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2087, allocations: 160 / 0.9349 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.2087, allocations: 7.984 kB / 0.9349 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.2091, allocations: 203.4 kB / 0.9351 GB, free: 20.31 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.394e-05/0.2092, allocations: 85.05 kB / 0.9352 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.2092, allocations: 3.984 kB / 0.9352 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.2094, allocations: 12 kB / 0.9352 GB, free: 20.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.2094, allocations: 12.02 kB / 0.9352 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.2095, allocations: 7.938 kB / 0.9352 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.297e-05/0.2095, allocations: 79.28 kB / 0.9353 GB, free: 20.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.192e-06/0.2095, allocations: 0 / 0.9353 GB, free: 20.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002869/0.2098, allocations: 23.86 kB / 0.9353 GB, free: 20.07 MB / 0.5886 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 (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.0001049/0.2099, allocations: 103.2 kB / 0.9354 GB, free: 19.96 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003688/0.2103, allocations: 71.89 kB / 0.9355 GB, free: 19.89 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2103, allocations: 0 / 0.9355 GB, free: 19.89 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.2105, allocations: 44.16 kB / 0.9355 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.2108, allocations: 4 kB / 0.9355 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.2112, allocations: 140.6 kB / 0.9357 GB, free: 19.68 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.2113, allocations: 0.6809 MB / 0.9363 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.237e-05/0.2114, allocations: 15.73 kB / 0.9364 GB, free: 18.96 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.375e-05/0.2114, allocations: 11.44 kB / 0.9364 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of SimCode: time 8.92e-07/0.2114, allocations: 0 / 0.9364 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of Templates: time 0.00318/0.2146, allocations: 0.5371 MB / 0.9369 GB, free: 18.41 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)