Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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 8.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.822/1.822, allocations: 297.4 MB / 312.6 MB, free: 2.902 MB / 234.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.001373/0.001374, allocations: 186 kB / 382.3 MB, free: 14.83 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.76/1.76, allocations: 225.7 MB / 0.6617 GB, free: 7.207 MB / 490.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.0007914/0.0007913, allocations: 94.3 kB / 0.7789 GB, free: 47.08 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.0003131, allocations: 8 kB / 0.9058 GB, free: 4.949 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7358/0.7361, allocations: 119.2 MB / 1.022 GB, free: 58.27 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001088/0.7373, allocations: 396.7 kB / 1.023 GB, free: 58.11 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001465/0.7388, allocations: 1.104 MB / 1.024 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.677e-05/0.7388, allocations: 4.938 kB / 1.024 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.696e-05/0.7389, allocations: 1.406 kB / 1.024 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.214e-05/0.7389, allocations: 10.92 kB / 1.024 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.7392, allocations: 30.38 kB / 1.024 GB, free: 57.47 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 7.484e-05/0.7393, allocations: 43.19 kB / 1.024 GB, free: 57.45 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.7394, allocations: 15.56 kB / 1.024 GB, free: 57.45 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.354e-05/0.7394, allocations: 16.05 kB / 1.024 GB, free: 57.44 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.7395, allocations: 19.72 kB / 1.024 GB, free: 57.43 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.7395, allocations: 1.719 kB / 1.024 GB, free: 57.43 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.266e-05/0.7396, allocations: 16.02 kB / 1.024 GB, free: 57.43 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.641e-05/0.7396, allocations: 8.797 kB / 1.024 GB, free: 57.43 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.992e-05/0.7397, allocations: 42.95 kB / 1.024 GB, free: 57.39 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.7398, allocations: 43.41 kB / 1.024 GB, free: 57.38 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.7398, allocations: 0 / 1.024 GB, free: 57.38 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7398, allocations: 0 / 1.024 GB, free: 57.38 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.7398, allocations: 0.75 kB / 1.024 GB, free: 57.38 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.0005002/0.7403, allocations: 356.1 kB / 1.024 GB, free: 57.01 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.7404, allocations: 11.72 kB / 1.024 GB, free: 57.01 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.465e-05/0.7404, allocations: 7.75 kB / 1.024 GB, free: 57.01 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.947e-05/0.7406, allocations: 167.9 kB / 1.024 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.7406, allocations: 2.75 kB / 1.024 GB, free: 56.81 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.7406, allocations: 11.28 kB / 1.025 GB, free: 56.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.7409, allocations: 66.52 kB / 1.025 GB, free: 56.76 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.7409, allocations: 192 / 1.025 GB, free: 56.76 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.7409, allocations: 5.156 kB / 1.025 GB, free: 56.76 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.7409, allocations: 0.9062 kB / 1.025 GB, free: 56.76 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002786/0.7412, allocations: 49.34 kB / 1.025 GB, free: 56.75 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004562/0.7417, allocations: 273.3 kB / 1.025 GB, free: 56.48 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.7419, allocations: 60.97 kB / 1.025 GB, free: 56.44 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.742, allocations: 27.55 kB / 1.025 GB, free: 56.43 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.742, allocations: 8.672 kB / 1.025 GB, free: 56.43 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.7423, allocations: 73.56 kB / 1.025 GB, free: 56.37 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.523e-06/0.7423, allocations: 0 / 1.025 GB, free: 56.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0004417/0.7427, allocations: 121.5 kB / 1.025 GB, free: 56.32 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.7428, allocations: 57.66 kB / 1.025 GB, free: 56.26 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.803e-05/0.7429, allocations: 110.8 kB / 1.025 GB, free: 56.16 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.7429, allocations: 29.64 kB / 1.025 GB, free: 56.12 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.743, allocations: 91.97 kB / 1.025 GB, free: 56.03 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.743, allocations: 12.55 kB / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-06/0.743, allocations: 0 / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.7431, allocations: 318.4 kB / 1.026 GB, free: 55.71 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.7432, allocations: 28.73 kB / 1.026 GB, free: 55.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.7433, allocations: 53.53 kB / 1.026 GB, free: 55.67 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.7435, allocations: 91.64 kB / 1.026 GB, free: 55.61 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7435, allocations: 1.156 kB / 1.026 GB, free: 55.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002401/0.7438, allocations: 112.8 kB / 1.026 GB, free: 55.56 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.7438, allocations: 8.25 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.7438, allocations: 1.156 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.7438, allocations: 10.84 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.744, allocations: 15.36 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.744, allocations: 2.281 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.674e-05/0.7441, allocations: 13.39 kB / 1.026 GB, free: 55.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.7441, allocations: 2.75 kB / 1.026 GB, free: 55.55 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 6.077e-05/0.7441, allocations: 119.6 kB / 1.026 GB, free: 55.43 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.077e-06/0.7442, allocations: 1.438 kB / 1.026 GB, free: 55.43 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002764/0.7444, allocations: 110.1 kB / 1.026 GB, free: 55.37 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.7445, allocations: 2.172 kB / 1.026 GB, free: 55.37 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.7445, allocations: 4.641 kB / 1.026 GB, free: 55.37 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.7445, allocations: 1.219 kB / 1.026 GB, free: 55.37 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.7448, allocations: 354.1 kB / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.7449, allocations: 0 / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.666e-05/0.7449, allocations: 14.48 kB / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.7449, allocations: 0 / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.7449, allocations: 3.969 kB / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.745, allocations: 0 / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.745, allocations: 0.7031 kB / 1.027 GB, free: 55.04 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.7452, allocations: 191.3 kB / 1.027 GB, free: 54.89 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.093e-05/0.7452, allocations: 88.56 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.7453, allocations: 1.625 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.939e-05/0.7454, allocations: 14.97 kB / 1.027 GB, free: 54.79 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.7454, allocations: 8.875 kB / 1.027 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-06/0.7454, allocations: 6.531 kB / 1.027 GB, free: 54.78 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.878e-05/0.7454, allocations: 83.17 kB / 1.027 GB, free: 54.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7455, allocations: 0 / 1.027 GB, free: 54.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002097/0.7457, allocations: 15.97 kB / 1.027 GB, free: 54.7 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.0001578/0.7458, allocations: 115.6 kB / 1.027 GB, free: 54.6 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000244/0.7461, allocations: 65.47 kB / 1.027 GB, free: 54.59 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.7461, allocations: 0 / 1.027 GB, free: 54.59 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.7462, allocations: 39.08 kB / 1.027 GB, free: 54.58 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.7465, allocations: 11.97 kB / 1.027 GB, free: 54.57 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003022/0.7468, allocations: 137.2 kB / 1.027 GB, free: 54.45 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001376/0.7469, allocations: 0.6817 MB / 1.028 GB, free: 53.75 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.868e-05/0.747, allocations: 8.047 kB / 1.028 GB, free: 53.75 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.098e-05/0.747, allocations: 13.59 kB / 1.028 GB, free: 53.74 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.747, allocations: 0 / 1.028 GB, free: 53.74 MB / 0.698 GB Notification: Performance of Templates: time 0.002757/0.7497, allocations: 0.6573 MB / 1.029 GB, free: 53.67 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)