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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.396/2.396, allocations: 254.9 MB / 269.9 MB, free: 9.652 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.001366/0.001366, allocations: 191.7 kB / 329.5 MB, free: 1.18 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.659/2.659, allocations: 225.6 MB / 0.6001 GB, free: 2.266 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.0009587/0.0009586, allocations: 91.33 kB / 0.7074 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004795, allocations: 11 kB / 0.8242 GB, free: 124.2 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2137, allocations: 109.1 MB / 0.9308 GB, free: 25.16 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001618/0.2154, allocations: 1.092 MB / 0.9318 GB, free: 24.05 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.000505/0.2159, allocations: 219.4 kB / 0.932 GB, free: 23.84 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.407e-05/0.216, allocations: 0 / 0.932 GB, free: 23.84 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.216, allocations: 3.938 kB / 0.932 GB, free: 23.84 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.2161, allocations: 11.92 kB / 0.9321 GB, free: 23.82 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.2163, allocations: 15.98 kB / 0.9321 GB, free: 23.81 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.306e-05/0.2164, allocations: 39.86 kB / 0.9321 GB, free: 23.77 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.2165, allocations: 11.98 kB / 0.9321 GB, free: 23.76 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.2166, allocations: 12 kB / 0.9321 GB, free: 23.75 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.41e-05/0.2166, allocations: 23.89 kB / 0.9322 GB, free: 23.72 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.2167, allocations: 7.938 kB / 0.9322 GB, free: 23.71 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.352e-05/0.2167, allocations: 0 / 0.9322 GB, free: 23.71 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.56e-05/0.2167, allocations: 4 kB / 0.9322 GB, free: 23.71 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.2168, allocations: 37.7 kB / 0.9322 GB, free: 23.67 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 7.708e-05/0.2169, allocations: 27.86 kB / 0.9322 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.2169, allocations: 4 kB / 0.9322 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2169, allocations: 0 / 0.9322 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.2169, allocations: 0 / 0.9322 GB, free: 23.64 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.0006048/0.2175, allocations: 371.6 kB / 0.9326 GB, free: 23.22 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2176, allocations: 8.031 kB / 0.9326 GB, free: 23.21 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.2176, allocations: 4.938 kB / 0.9326 GB, free: 23.21 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.257e-05/0.2177, allocations: 164.3 kB / 0.9328 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.2177, allocations: 4.375 kB / 0.9328 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.2178, allocations: 384 / 0.9328 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.2181, allocations: 78.19 kB / 0.9328 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2181, allocations: 4.188 kB / 0.9328 GB, free: 22.92 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.2181, allocations: 3.938 kB / 0.9328 GB, free: 22.92 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.2181, allocations: 0 / 0.9328 GB, free: 22.92 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.2184, allocations: 51.95 kB / 0.9329 GB, free: 22.87 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004555/0.2189, allocations: 288.7 kB / 0.9332 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.2192, allocations: 70.59 kB / 0.9332 GB, free: 22.46 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.2193, allocations: 32.84 kB / 0.9333 GB, free: 22.42 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.2194, allocations: 3.938 kB / 0.9333 GB, free: 22.42 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.2197, allocations: 83.31 kB / 0.9334 GB, free: 22.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 2.414e-06/0.2197, allocations: 0 / 0.9334 GB, free: 22.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0006202/0.2203, allocations: 129.6 kB / 0.9335 GB, free: 22.19 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.2204, allocations: 59.39 kB / 0.9335 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.632e-05/0.2205, allocations: 113.8 kB / 0.9336 GB, free: 22 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.2205, allocations: 29.7 kB / 0.9337 GB, free: 21.96 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.81e-05/0.2206, allocations: 84.14 kB / 0.9337 GB, free: 21.88 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.2206, allocations: 15.88 kB / 0.9338 GB, free: 21.86 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.2206, allocations: 0 / 0.9338 GB, free: 21.86 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.448e-05/0.2207, allocations: 318.8 kB / 0.9341 GB, free: 21.54 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.2208, allocations: 27.98 kB / 0.9341 GB, free: 21.52 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.221, allocations: 68.2 kB / 0.9342 GB, free: 21.43 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.2212, allocations: 39.92 kB / 0.9342 GB, free: 21.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2212, allocations: 0 / 0.9342 GB, free: 21.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004058/0.2217, allocations: 121.7 kB / 0.9343 GB, free: 21.27 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2217, allocations: 8 kB / 0.9343 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2217, allocations: 0 / 0.9343 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.2217, allocations: 4.188 kB / 0.9343 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.2219, allocations: 15.98 kB / 0.9343 GB, free: 21.24 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.2219, allocations: 3.938 kB / 0.9343 GB, free: 21.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.2221, allocations: 19.83 kB / 0.9344 GB, free: 21.22 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.2221, allocations: 4 kB / 0.9344 GB, free: 21.21 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.401e-05/0.2222, allocations: 127.2 kB / 0.9345 GB, free: 21.08 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/0.2222, allocations: 8 kB / 0.9345 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000419/0.2226, allocations: 102 kB / 0.9346 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2227, allocations: 0 / 0.9346 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2227, allocations: 4 kB / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2227, allocations: 4 kB / 0.9346 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005747/0.2233, allocations: 362.3 kB / 0.9349 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2233, allocations: 0 / 0.9349 GB, free: 20.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.2234, allocations: 15.98 kB / 0.935 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2234, allocations: 0 / 0.935 GB, free: 20.54 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.2234, allocations: 4 kB / 0.935 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.2235, allocations: 0 / 0.935 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.2235, allocations: 0 / 0.935 GB, free: 20.53 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004022/0.2239, allocations: 211.7 kB / 0.9352 GB, free: 20.31 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.2239, allocations: 85.02 kB / 0.9352 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.373e-05/0.224, allocations: 0 / 0.9352 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.2241, allocations: 16.05 kB / 0.9353 GB, free: 20.19 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.2242, allocations: 4 kB / 0.9353 GB, free: 20.19 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.2242, allocations: 7.938 kB / 0.9353 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.182e-05/0.2243, allocations: 87.27 kB / 0.9354 GB, free: 20.09 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.7e-07/0.2243, allocations: 0 / 0.9354 GB, free: 20.09 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002993/0.2246, allocations: 12 kB / 0.9354 GB, free: 20.08 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 (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 (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.0001217/0.2247, allocations: 103.2 kB / 0.9355 GB, free: 19.97 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003983/0.2251, allocations: 83.88 kB / 0.9355 GB, free: 19.89 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2251, allocations: 0 / 0.9355 GB, free: 19.89 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.2253, allocations: 31.98 kB / 0.9356 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2257, allocations: 7.938 kB / 0.9356 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004076/0.2261, allocations: 148.8 kB / 0.9357 GB, free: 19.68 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001285/0.2262, allocations: 0.6809 MB / 0.9364 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.81e-05/0.2263, allocations: 4 kB / 0.9364 GB, free: 18.96 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.2263, allocations: 11.44 kB / 0.9364 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of SimCode: time 8.82e-07/0.2263, allocations: 0 / 0.9364 GB, free: 18.95 MB / 0.5886 GB Notification: Performance of Templates: time 0.003302/0.2296, allocations: 0.5661 MB / 0.937 GB, free: 18.39 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)