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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") 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.912/1.912, 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.001103/0.001103, allocations: 190 kB / 382.3 MB, free: 14.82 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.519/1.519, allocations: 225.7 MB / 0.6617 GB, free: 7.234 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.0008165/0.0008166, allocations: 106.7 kB / 0.7789 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.0004319, allocations: 12 kB / 0.9059 GB, free: 4.941 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7148/0.7153, allocations: 119.2 MB / 1.022 GB, free: 57.54 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0009529/0.7163, allocations: 397.5 kB / 1.023 GB, free: 57.38 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.7178, allocations: 1.127 MB / 1.024 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.762e-05/0.7178, allocations: 0 / 1.024 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.697e-05/0.7178, allocations: 0 / 1.024 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.7179, allocations: 7.031 kB / 1.024 GB, free: 56.75 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.7182, allocations: 35.55 kB / 1.024 GB, free: 56.73 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.332e-05/0.7183, allocations: 50.5 kB / 1.024 GB, free: 56.71 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.202e-05/0.7184, allocations: 4.5 kB / 1.024 GB, free: 56.71 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.816e-05/0.7184, allocations: 20.42 kB / 1.024 GB, free: 56.71 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.294e-05/0.7185, allocations: 26.06 kB / 1.024 GB, free: 56.7 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.303e-05/0.7185, allocations: 2.562 kB / 1.024 GB, free: 56.7 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 6.022e-05/0.7186, allocations: 16.86 kB / 1.024 GB, free: 56.69 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.7186, allocations: 9.062 kB / 1.024 GB, free: 56.69 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.766e-05/0.7187, allocations: 41.75 kB / 1.024 GB, free: 56.65 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.7188, allocations: 57.41 kB / 1.024 GB, free: 56.63 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.7188, allocations: 0 / 1.024 GB, free: 56.63 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.485e-06/0.7189, allocations: 4.25 kB / 1.024 GB, free: 56.63 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.7189, allocations: 0 / 1.024 GB, free: 56.63 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006005/0.7195, allocations: 366.9 kB / 1.024 GB, free: 56.27 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.7195, allocations: 12 kB / 1.024 GB, free: 56.27 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.7196, allocations: 8.156 kB / 1.024 GB, free: 56.26 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.7197, allocations: 162.7 kB / 1.025 GB, free: 56.07 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.7197, allocations: 6.281 kB / 1.025 GB, free: 56.06 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.7197, allocations: 4.844 kB / 1.025 GB, free: 56.06 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.72, allocations: 75.17 kB / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.72, allocations: 192 / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.72, allocations: 3.938 kB / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.72, allocations: 2.781 kB / 1.025 GB, free: 56.02 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.7202, allocations: 59.5 kB / 1.025 GB, free: 56.01 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004285/0.7207, allocations: 272.9 kB / 1.025 GB, free: 55.73 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.7209, allocations: 67.41 kB / 1.025 GB, free: 55.69 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.721, allocations: 39.75 kB / 1.025 GB, free: 55.68 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.721, allocations: 2.531 kB / 1.025 GB, free: 55.68 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.7213, allocations: 86.23 kB / 1.025 GB, free: 55.62 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.7213, allocations: 3.469 kB / 1.025 GB, free: 55.62 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0004391/0.7217, allocations: 136.2 kB / 1.025 GB, free: 55.57 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.7218, allocations: 55.91 kB / 1.025 GB, free: 55.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.489e-05/0.7218, allocations: 108.4 kB / 1.025 GB, free: 55.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.7219, allocations: 31.08 kB / 1.025 GB, free: 55.37 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.7219, allocations: 87.81 kB / 1.026 GB, free: 55.28 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.7219, allocations: 25.8 kB / 1.026 GB, free: 55.26 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-06/0.7219, allocations: 0.8125 kB / 1.026 GB, free: 55.26 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.722, allocations: 318.9 kB / 1.026 GB, free: 54.95 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.7221, allocations: 31.05 kB / 1.026 GB, free: 54.94 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.7223, allocations: 73.53 kB / 1.026 GB, free: 54.89 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.7225, allocations: 106.5 kB / 1.026 GB, free: 54.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.7225, allocations: 0 / 1.026 GB, free: 54.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002586/0.7227, allocations: 121.5 kB / 1.026 GB, free: 54.77 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7228, allocations: 13.41 kB / 1.026 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.7228, allocations: 1.125 kB / 1.026 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.7228, allocations: 2.312 kB / 1.026 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.7229, allocations: 23.5 kB / 1.026 GB, free: 54.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.7229, allocations: 6.062 kB / 1.026 GB, free: 54.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.205e-05/0.723, allocations: 14.17 kB / 1.026 GB, free: 54.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.723, allocations: 2.844 kB / 1.026 GB, free: 54.75 MB / 0.698 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.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.854e-05/0.7231, allocations: 124.7 kB / 1.026 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.7231, allocations: 2.406 kB / 1.026 GB, free: 54.62 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002881/0.7234, allocations: 114.8 kB / 1.026 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.7234, allocations: 5 kB / 1.026 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.7234, allocations: 5.438 kB / 1.026 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.7235, allocations: 1.031 kB / 1.026 GB, free: 54.57 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.7239, allocations: 375.7 kB / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.7239, allocations: 0 / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.028e-05/0.724, allocations: 17.12 kB / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.724, allocations: 1.094 kB / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.724, allocations: 2.094 kB / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.724, allocations: 0 / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.724, allocations: 5.609 kB / 1.027 GB, free: 54.23 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.7243, allocations: 211.6 kB / 1.027 GB, free: 54.07 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.765e-05/0.7243, allocations: 83.05 kB / 1.027 GB, free: 53.98 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.7243, allocations: 1.656 kB / 1.027 GB, free: 53.98 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.635e-05/0.7244, allocations: 11.66 kB / 1.027 GB, free: 53.98 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.7245, allocations: 5.578 kB / 1.027 GB, free: 53.98 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.7245, allocations: 6.891 kB / 1.027 GB, free: 53.97 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.199e-05/0.7246, allocations: 93.89 kB / 1.027 GB, free: 53.89 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/0.7246, allocations: 0 / 1.027 GB, free: 53.89 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002219/0.7248, allocations: 15.34 kB / 1.027 GB, free: 53.89 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001475/0.7249, allocations: 107.6 kB / 1.027 GB, free: 53.8 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002711/0.7252, allocations: 88.91 kB / 1.027 GB, free: 53.78 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7252, allocations: 3.938 kB / 1.027 GB, free: 53.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.7253, allocations: 39.45 kB / 1.028 GB, free: 53.77 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.7256, allocations: 9.703 kB / 1.028 GB, free: 53.76 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.7259, allocations: 149.3 kB / 1.028 GB, free: 53.63 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.7261, allocations: 0.6835 MB / 1.028 GB, free: 52.93 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.535e-05/0.7261, allocations: 6.812 kB / 1.028 GB, free: 52.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.197e-05/0.7261, allocations: 10.78 kB / 1.028 GB, free: 52.93 MB / 0.698 GB Notification: Performance of SimCode: time 3.11e-07/0.7261, allocations: 0 / 1.028 GB, free: 52.93 MB / 0.698 GB Notification: Performance of Templates: time 0.002948/0.7291, allocations: 0.7357 MB / 1.029 GB, free: 52.86 MB / 0.698 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)