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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") 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.521/1.521, allocations: 255.9 MB / 271.2 MB, free: 8.879 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.001133/0.001133, allocations: 182.6 kB / 330.8 MB, free: 448 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.683/1.683, allocations: 225.7 MB / 0.6016 GB, free: 1.559 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.0008189/0.0008189, allocations: 100.3 kB / 0.709 GB, free: 6.973 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0004155/0.0004155, allocations: 8.625 kB / 0.8261 GB, free: 115.6 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2028, allocations: 109.2 MB / 0.9328 GB, free: 6.219 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00142/0.2043, allocations: 1.1 MB / 0.9338 GB, free: 5.109 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0004632/0.2048, allocations: 203.5 kB / 0.934 GB, free: 4.91 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.2049, allocations: 4 kB / 0.934 GB, free: 4.906 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 2.432e-05/0.2049, allocations: 3.984 kB / 0.934 GB, free: 4.902 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 8.056e-05/0.205, allocations: 3.938 kB / 0.934 GB, free: 4.898 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.2052, allocations: 23.97 kB / 0.9341 GB, free: 4.875 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 8.234e-05/0.2053, allocations: 47.86 kB / 0.9341 GB, free: 4.828 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.2055, allocations: 8 kB / 0.9341 GB, free: 4.82 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 9.01e-05/0.2056, allocations: 11.92 kB / 0.9341 GB, free: 4.809 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.172e-05/0.2056, allocations: 23.91 kB / 0.9342 GB, free: 4.785 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.2057, allocations: 0 / 0.9342 GB, free: 4.785 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.365e-05/0.2057, allocations: 4 kB / 0.9342 GB, free: 4.781 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 2.441e-05/0.2057, allocations: 11.92 kB / 0.9342 GB, free: 4.77 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 4.94e-05/0.2058, allocations: 37.64 kB / 0.9342 GB, free: 4.727 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 9.666e-05/0.2059, allocations: 39.86 kB / 0.9342 GB, free: 4.688 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.2059, allocations: 4 kB / 0.9342 GB, free: 4.684 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.993e-06/0.2059, allocations: 3.938 kB / 0.9343 GB, free: 4.68 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.2059, allocations: 0 / 0.9343 GB, free: 4.68 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.000527/0.2064, allocations: 363.7 kB / 0.9346 GB, free: 4.273 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.2065, allocations: 11.98 kB / 0.9346 GB, free: 4.262 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.306e-05/0.2065, allocations: 8.938 kB / 0.9346 GB, free: 4.254 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.2067, allocations: 176.3 kB / 0.9348 GB, free: 4.043 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.2067, allocations: 8.312 kB / 0.9348 GB, free: 4.035 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.711e-05/0.2067, allocations: 4.375 kB / 0.9348 GB, free: 4.031 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.207, allocations: 66.22 kB / 0.9349 GB, free: 3.961 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.207, allocations: 192 / 0.9349 GB, free: 3.961 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.207, allocations: 3.938 kB / 0.9349 GB, free: 3.957 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.207, allocations: 4 kB / 0.9349 GB, free: 3.953 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001841/0.2072, allocations: 51.97 kB / 0.9349 GB, free: 3.902 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.2077, allocations: 280.8 kB / 0.9352 GB, free: 3.578 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001804/0.2079, allocations: 70.42 kB / 0.9353 GB, free: 3.5 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.886e-05/0.208, allocations: 32.89 kB / 0.9353 GB, free: 3.465 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.2081, allocations: 4 kB / 0.9353 GB, free: 3.461 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002439/0.2083, allocations: 75.39 kB / 0.9354 GB, free: 3.375 MB / 0.573 GB Notification: Performance of pre-optimization done (n=6): time 1.994e-06/0.2083, allocations: 0 / 0.9354 GB, free: 3.375 MB / 0.573 GB Notification: Performance of matching and sorting (n=6): time 0.0004159/0.2088, allocations: 137.5 kB / 0.9355 GB, free: 3.234 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.2088, allocations: 55.41 kB / 0.9355 GB, free: 3.168 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.428e-05/0.2089, allocations: 109.9 kB / 0.9357 GB, free: 3.051 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.2089, allocations: 29.7 kB / 0.9357 GB, free: 3.016 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 4.146e-05/0.209, allocations: 92.12 kB / 0.9358 GB, free: 2.922 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.209, allocations: 11.81 kB / 0.9358 GB, free: 2.91 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.209, allocations: 0 / 0.9358 GB, free: 2.91 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 5.89e-05/0.2091, allocations: 318.8 kB / 0.9361 GB, free: 2.59 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.328e-05/0.2092, allocations: 27.97 kB / 0.9361 GB, free: 2.562 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.2093, allocations: 72.2 kB / 0.9362 GB, free: 2.477 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001943/0.2095, allocations: 96.14 kB / 0.9363 GB, free: 2.367 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2095, allocations: 0 / 0.9363 GB, free: 2.367 MB / 0.573 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002453/0.2097, allocations: 121.5 kB / 0.9364 GB, free: 2.242 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2098, allocations: 7.906 kB / 0.9364 GB, free: 2.234 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2098, allocations: 4.25 kB / 0.9364 GB, free: 2.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2098, allocations: 0 / 0.9364 GB, free: 2.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.2099, allocations: 27.92 kB / 0.9364 GB, free: 2.203 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.2099, allocations: 7.938 kB / 0.9364 GB, free: 2.195 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.775e-05/0.21, allocations: 16.02 kB / 0.9364 GB, free: 2.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.21, allocations: 4 kB / 0.9364 GB, free: 2.176 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.464e-05/0.2101, allocations: 118.4 kB / 0.9366 GB, free: 2.051 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.2101, allocations: 7.906 kB / 0.9366 GB, free: 2.043 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000266/0.2104, allocations: 114 kB / 0.9367 GB, free: 1.926 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2104, allocations: 4 kB / 0.9367 GB, free: 1.922 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.2104, allocations: 0 / 0.9367 GB, free: 1.922 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.2104, allocations: 0 / 0.9367 GB, free: 1.922 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003687/0.2108, allocations: 366.4 kB / 0.937 GB, free: 1.508 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.2108, allocations: 0 / 0.937 GB, free: 1.508 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.994e-05/0.2109, allocations: 15.98 kB / 0.937 GB, free: 1.492 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.2109, allocations: 0 / 0.937 GB, free: 1.492 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.2109, allocations: 0 / 0.937 GB, free: 1.492 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.2109, allocations: 192 / 0.937 GB, free: 1.492 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2109, allocations: 0 / 0.937 GB, free: 1.492 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.2112, allocations: 207.4 kB / 0.9372 GB, free: 1.273 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 2.331e-05/0.2112, allocations: 85.02 kB / 0.9373 GB, free: 1.172 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.2112, allocations: 0 / 0.9373 GB, free: 1.172 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.2113, allocations: 15.98 kB / 0.9373 GB, free: 1.156 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.2114, allocations: 4 kB / 0.9373 GB, free: 1.152 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.2114, allocations: 3.938 kB / 0.9373 GB, free: 1.148 MB / 0.573 GB Notification: Performance of sorting global known variables: time 3.464e-05/0.2114, allocations: 91.27 kB / 0.9374 GB, free: 1.059 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.142e-06/0.2114, allocations: 0 / 0.9374 GB, free: 1.059 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.000221/0.2117, allocations: 11.94 kB / 0.9374 GB, free: 1.047 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * 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.0001233/0.2118, allocations: 107.8 kB / 0.9376 GB, free: 0.9336 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0002427/0.212, allocations: 76.06 kB / 0.9376 GB, free: 0.8594 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2121, allocations: 0 / 0.9376 GB, free: 0.8594 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.2122, allocations: 36.3 kB / 0.9377 GB, free: 0.8242 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.2124, allocations: 12 kB / 0.9377 GB, free: 0.8125 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003551/0.2128, allocations: 148.6 kB / 0.9378 GB, free: 0.6367 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.2131, allocations: 0.6809 MB / 0.9385 GB, free: 15.93 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.187e-05/0.2131, allocations: 4 kB / 0.9385 GB, free: 15.93 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.2131, allocations: 15.44 kB / 0.9385 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of SimCode: time 1.532e-06/0.2132, allocations: 0 / 0.9385 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of Templates: time 0.00332/0.2165, allocations: 0.5816 MB / 0.9391 GB, free: 15.34 MB / 0.5886 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)