Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.804/1.804, allocations: 306.1 MB / 321.4 MB, free: 10.67 MB / 250.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.001011/0.001011, allocations: 182.6 kB / 393.1 MB, free: 4.039 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.66/1.66, allocations: 225.7 MB / 0.6743 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008127/0.0008123, allocations: 91.72 kB / 0.7935 GB, free: 39.83 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003761, allocations: 8 kB / 0.9224 GB, free: 8.609 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6674/0.6678, allocations: 121.3 MB / 1.041 GB, free: 57.76 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001058/0.6689, allocations: 397.7 kB / 1.041 GB, free: 57.58 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.6703, allocations: 1.105 MB / 1.042 GB, free: 56.73 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.951e-05/0.6704, allocations: 3.938 kB / 1.042 GB, free: 56.72 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.6704, allocations: 0 / 1.042 GB, free: 56.72 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 9.366e-05/0.6705, allocations: 3.938 kB / 1.042 GB, free: 56.72 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.6708, allocations: 34.69 kB / 1.042 GB, free: 56.7 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.265e-05/0.6709, allocations: 38.52 kB / 1.042 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.6711, allocations: 14.11 kB / 1.042 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.255e-05/0.6711, allocations: 17.91 kB / 1.042 GB, free: 56.67 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.101e-05/0.6712, allocations: 18.45 kB / 1.042 GB, free: 56.66 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.6712, allocations: 7.062 kB / 1.042 GB, free: 56.66 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.026e-05/0.6713, allocations: 11.66 kB / 1.042 GB, free: 56.66 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.069e-05/0.6713, allocations: 11.34 kB / 1.042 GB, free: 56.65 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.6714, allocations: 39.39 kB / 1.043 GB, free: 56.61 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.6715, allocations: 50.36 kB / 1.043 GB, free: 56.59 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.6715, allocations: 0.9062 kB / 1.043 GB, free: 56.59 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.144e-06/0.6715, allocations: 0 / 1.043 GB, free: 56.59 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.6716, allocations: 0 / 1.043 GB, free: 56.59 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005156/0.6721, allocations: 353.8 kB / 1.043 GB, free: 56.23 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.6721, allocations: 10.19 kB / 1.043 GB, free: 56.23 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.6722, allocations: 9.172 kB / 1.043 GB, free: 56.23 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.84e-05/0.6723, allocations: 168.6 kB / 1.043 GB, free: 56.03 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.6723, allocations: 9.594 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.6723, allocations: 2.969 kB / 1.043 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.6726, allocations: 67.81 kB / 1.043 GB, free: 55.98 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.6726, allocations: 192 / 1.043 GB, free: 55.98 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.6726, allocations: 3.938 kB / 1.043 GB, free: 55.98 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.6726, allocations: 1.938 kB / 1.043 GB, free: 55.98 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.6728, allocations: 46.83 kB / 1.043 GB, free: 55.97 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004341/0.6732, allocations: 282.2 kB / 1.043 GB, free: 55.69 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.6734, allocations: 57.33 kB / 1.044 GB, free: 55.65 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.6735, allocations: 33.27 kB / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.6736, allocations: 0 / 1.044 GB, free: 55.64 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002011/0.6738, allocations: 80.08 kB / 1.044 GB, free: 55.58 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.6738, allocations: 0 / 1.044 GB, free: 55.58 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0003825/0.6742, allocations: 125.5 kB / 1.044 GB, free: 55.54 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.6742, allocations: 52.97 kB / 1.044 GB, free: 55.47 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.399e-05/0.6743, allocations: 108 kB / 1.044 GB, free: 55.37 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/0.6743, allocations: 29.11 kB / 1.044 GB, free: 55.34 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.533e-05/0.6743, allocations: 93.27 kB / 1.044 GB, free: 55.24 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.6744, allocations: 8.938 kB / 1.044 GB, free: 55.24 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-06/0.6744, allocations: 0 / 1.044 GB, free: 55.24 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.421e-05/0.6744, allocations: 316.5 kB / 1.044 GB, free: 54.92 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.801e-05/0.6745, allocations: 30.62 kB / 1.044 GB, free: 54.92 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.6746, allocations: 55.59 kB / 1.044 GB, free: 54.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.6748, allocations: 89.78 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.6749, allocations: 0.6562 kB / 1.045 GB, free: 54.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002535/0.6751, allocations: 115.9 kB / 1.045 GB, free: 54.77 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.6751, allocations: 9.219 kB / 1.045 GB, free: 54.77 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.6752, allocations: 4.906 kB / 1.045 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.6752, allocations: 1.344 kB / 1.045 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.6753, allocations: 17.03 kB / 1.045 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.6753, allocations: 3.938 kB / 1.045 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.416e-05/0.6754, allocations: 8.016 kB / 1.045 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.6754, allocations: 7.594 kB / 1.045 GB, free: 54.75 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: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.495e-05/0.6755, allocations: 120.5 kB / 1.045 GB, free: 54.63 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.6755, allocations: 7.984 kB / 1.045 GB, free: 54.63 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.6758, allocations: 107.8 kB / 1.045 GB, free: 54.58 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.6758, allocations: 4 kB / 1.045 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.6758, allocations: 3.438 kB / 1.045 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6758, allocations: 0 / 1.045 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.6762, allocations: 342.3 kB / 1.045 GB, free: 54.26 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.6762, allocations: 7.938 kB / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.962e-05/0.6763, allocations: 15.61 kB / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.6763, allocations: 0 / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.376e-06/0.6763, allocations: 0 / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.6763, allocations: 1.5 kB / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.6763, allocations: 384 / 1.045 GB, free: 54.25 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002405/0.6765, allocations: 196.8 kB / 1.045 GB, free: 54.09 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.6766, allocations: 89.25 kB / 1.046 GB, free: 53.99 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.6766, allocations: 0 / 1.046 GB, free: 53.99 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.976e-05/0.6767, allocations: 11.25 kB / 1.046 GB, free: 53.99 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.044e-05/0.6768, allocations: 1.969 kB / 1.046 GB, free: 53.99 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.6768, allocations: 10.91 kB / 1.046 GB, free: 53.98 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.023e-05/0.6768, allocations: 91.33 kB / 1.046 GB, free: 53.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6768, allocations: 0 / 1.046 GB, free: 53.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.00022/0.677, allocations: 13.81 kB / 1.046 GB, free: 53.9 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001669/0.6772, allocations: 109.2 kB / 1.046 GB, free: 53.81 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002699/0.6775, allocations: 65.78 kB / 1.046 GB, free: 53.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6775, allocations: 3.25 kB / 1.046 GB, free: 53.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.6776, allocations: 31.58 kB / 1.046 GB, free: 53.79 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.6779, allocations: 12.73 kB / 1.046 GB, free: 53.79 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.6782, allocations: 140.3 kB / 1.046 GB, free: 53.65 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001343/0.6784, allocations: 0.6846 MB / 1.047 GB, free: 52.96 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.971e-05/0.6784, allocations: 2.219 kB / 1.047 GB, free: 52.96 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.141e-05/0.6784, allocations: 14.03 kB / 1.047 GB, free: 52.95 MB / 0.698 GB Notification: Performance of SimCode: time 2e-07/0.6784, allocations: 0 / 1.047 GB, free: 52.95 MB / 0.698 GB Notification: Performance of Templates: time 0.002795/0.6812, allocations: 0.6553 MB / 1.047 GB, free: 52.87 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)