Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.391/1.391, allocations: 255.9 MB / 271.2 MB, free: 8.906 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.001031/0.001031, allocations: 181.9 kB / 330.8 MB, free: 496 kB / 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 1.815/1.815, allocations: 225.7 MB / 0.6016 GB, free: 1.59 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.0009565/0.0009566, allocations: 100.1 kB / 0.709 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003538, allocations: 8 kB / 0.8261 GB, free: 115.6 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 109.2 MB / 0.9328 GB, free: 6.25 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001323/0.2188, allocations: 1.088 MB / 0.9338 GB, free: 5.152 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0004282/0.2192, allocations: 207.5 kB / 0.934 GB, free: 4.949 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.094e-05/0.2193, allocations: 0 / 0.934 GB, free: 4.949 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.2193, allocations: 0 / 0.934 GB, free: 4.949 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 8.247e-05/0.2194, allocations: 15.86 kB / 0.934 GB, free: 4.934 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.2196, allocations: 15.98 kB / 0.9341 GB, free: 4.918 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 9.503e-05/0.2198, allocations: 39.92 kB / 0.9341 GB, free: 4.879 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.2199, allocations: 11.98 kB / 0.9341 GB, free: 4.867 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.277e-05/0.22, allocations: 19.86 kB / 0.9341 GB, free: 4.848 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 4.945e-05/0.22, allocations: 23.91 kB / 0.9341 GB, free: 4.824 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 2.197e-05/0.2201, allocations: 0 / 0.9341 GB, free: 4.824 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.2201, allocations: 4 kB / 0.9341 GB, free: 4.82 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 2.444e-05/0.2201, allocations: 4 kB / 0.9342 GB, free: 4.816 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 4.446e-05/0.2202, allocations: 45.56 kB / 0.9342 GB, free: 4.766 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 8.593e-05/0.2203, allocations: 35.86 kB / 0.9342 GB, free: 4.73 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2203, allocations: 0 / 0.9342 GB, free: 4.73 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2203, allocations: 4 kB / 0.9342 GB, free: 4.727 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2203, allocations: 0 / 0.9342 GB, free: 4.727 MB / 0.573 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.0005204/0.2208, allocations: 367.7 kB / 0.9346 GB, free: 4.316 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.2209, allocations: 11.98 kB / 0.9346 GB, free: 4.305 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.789e-05/0.2209, allocations: 0.9375 kB / 0.9346 GB, free: 4.305 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.689e-05/0.221, allocations: 172.3 kB / 0.9348 GB, free: 4.098 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.221, allocations: 4.375 kB / 0.9348 GB, free: 4.094 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.221, allocations: 4.375 kB / 0.9348 GB, free: 4.09 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001861/0.2212, allocations: 78.16 kB / 0.9348 GB, free: 4.008 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.2213, allocations: 192 / 0.9348 GB, free: 4.008 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.2213, allocations: 3.938 kB / 0.9348 GB, free: 4.004 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2213, allocations: 0 / 0.9348 GB, free: 4.004 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.2215, allocations: 51.95 kB / 0.9349 GB, free: 3.953 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003495/0.2218, allocations: 272.8 kB / 0.9352 GB, free: 3.637 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.222, allocations: 62.48 kB / 0.9352 GB, free: 3.566 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.2e-05/0.2221, allocations: 40.91 kB / 0.9353 GB, free: 3.523 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2221, allocations: 3.984 kB / 0.9353 GB, free: 3.52 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.2223, allocations: 83.38 kB / 0.9353 GB, free: 3.426 MB / 0.573 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.2223, allocations: 3.938 kB / 0.9353 GB, free: 3.422 MB / 0.573 GB Notification: Performance of matching and sorting (n=6): time 0.0003679/0.2227, allocations: 137.5 kB / 0.9355 GB, free: 3.281 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.2227, allocations: 55.48 kB / 0.9355 GB, free: 3.215 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.607e-05/0.2228, allocations: 113.8 kB / 0.9356 GB, free: 3.094 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.2228, allocations: 25.7 kB / 0.9357 GB, free: 3.062 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 2.408e-05/0.2228, allocations: 84.14 kB / 0.9357 GB, free: 2.977 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 1.654e-05/0.2228, allocations: 19.8 kB / 0.9358 GB, free: 2.957 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.2229, allocations: 0 / 0.9358 GB, free: 2.957 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.2229, allocations: 314.8 kB / 0.9361 GB, free: 2.641 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.738e-05/0.223, allocations: 31.97 kB / 0.9361 GB, free: 2.609 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.913e-05/0.2231, allocations: 51.42 kB / 0.9361 GB, free: 2.547 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.2233, allocations: 95.27 kB / 0.9362 GB, free: 2.441 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2233, allocations: 3.938 kB / 0.9362 GB, free: 2.438 MB / 0.573 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002103/0.2235, allocations: 113.6 kB / 0.9363 GB, free: 2.32 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2235, allocations: 4 kB / 0.9363 GB, free: 2.316 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2235, allocations: 0 / 0.9363 GB, free: 2.316 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2235, allocations: 4 kB / 0.9363 GB, free: 2.312 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.2236, allocations: 19.92 kB / 0.9364 GB, free: 2.293 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.2237, allocations: 4.094 kB / 0.9364 GB, free: 2.289 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.696e-05/0.2237, allocations: 11.91 kB / 0.9364 GB, free: 2.277 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.2237, allocations: 4 kB / 0.9364 GB, free: 2.273 MB / 0.573 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 6.122e-05/0.2238, allocations: 130.4 kB / 0.9365 GB, free: 2.137 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.2238, allocations: 0 / 0.9365 GB, free: 2.137 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002558/0.2241, allocations: 118 kB / 0.9366 GB, free: 2.016 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2241, allocations: 0 / 0.9366 GB, free: 2.016 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2241, allocations: 0 / 0.9366 GB, free: 2.016 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2241, allocations: 4 kB / 0.9366 GB, free: 2.012 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.2245, allocations: 358.5 kB / 0.937 GB, free: 1.605 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.2245, allocations: 0 / 0.937 GB, free: 1.605 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-05/0.2245, allocations: 19.98 kB / 0.937 GB, free: 1.586 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2246, allocations: 0 / 0.937 GB, free: 1.586 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2246, allocations: 0 / 0.937 GB, free: 1.586 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2246, allocations: 0.625 kB / 0.937 GB, free: 1.586 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2246, allocations: 3.938 kB / 0.937 GB, free: 1.582 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002338/0.2248, allocations: 215.3 kB / 0.9372 GB, free: 1.355 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.745e-05/0.2248, allocations: 77.11 kB / 0.9373 GB, free: 1.262 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.2249, allocations: 7.938 kB / 0.9373 GB, free: 1.254 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.225, allocations: 15.98 kB / 0.9373 GB, free: 1.238 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.225, allocations: 0 / 0.9373 GB, free: 1.238 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.225, allocations: 7.938 kB / 0.9373 GB, free: 1.23 MB / 0.573 GB Notification: Performance of sorting global known variables: time 2.399e-05/0.2251, allocations: 87.27 kB / 0.9374 GB, free: 1.145 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2251, allocations: 0 / 0.9374 GB, free: 1.145 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0001968/0.2253, allocations: 8 kB / 0.9374 GB, free: 1.137 MB / 0.573 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 9.422e-05/0.2254, allocations: 109 kB / 0.9375 GB, free: 1.023 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0002295/0.2256, allocations: 71.89 kB / 0.9376 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2256, allocations: 0 / 0.9376 GB, free: 0.9531 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.2257, allocations: 48.09 kB / 0.9376 GB, free: 0.9062 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002292/0.226, allocations: 15.45 kB / 0.9376 GB, free: 0.8945 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.2263, allocations: 148.6 kB / 0.9378 GB, free: 0.7188 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.2264, allocations: 0.6809 MB / 0.9384 GB, free: 12 kB / 0.573 GB Notification: Performance of simCode: alias equations: time 2.851e-05/0.2264, allocations: 4 kB / 0.9384 GB, free: 8 kB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.2265, allocations: 11.44 kB / 0.9384 GB, free: 16 MB / 0.5886 GB Notification: Performance of SimCode: time 2.2e-07/0.2265, allocations: 0 / 0.9384 GB, free: 16 MB / 0.5886 GB Notification: Performance of Templates: time 0.002517/0.229, allocations: 0.5495 MB / 0.939 GB, free: 15.45 MB / 0.5886 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)