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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") 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.57/1.57, allocations: 255.9 MB / 271.2 MB, free: 8.887 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.001048/0.001048, allocations: 186.3 kB / 330.8 MB, free: 480 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.695/1.695, allocations: 225.7 MB / 0.6016 GB, free: 1.758 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.000876/0.0008761, allocations: 104.4 kB / 0.709 GB, free: 7.336 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0005143/0.0005143, allocations: 8.438 kB / 0.8261 GB, free: 124.1 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2371/0.2376, allocations: 109.2 MB / 0.9328 GB, free: 24.4 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001374/0.2391, allocations: 1.092 MB / 0.9338 GB, free: 23.3 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0004357/0.2395, allocations: 215.4 kB / 0.934 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.983e-05/0.2396, allocations: 0 / 0.934 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.896e-05/0.2396, allocations: 4 kB / 0.934 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/0.2397, allocations: 7.922 kB / 0.9341 GB, free: 23.08 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.2399, allocations: 23.92 kB / 0.9341 GB, free: 23.05 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 7.784e-05/0.24, allocations: 43.91 kB / 0.9341 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.2401, allocations: 4 kB / 0.9341 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.79e-05/0.2402, allocations: 19.92 kB / 0.9341 GB, free: 22.99 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.2402, allocations: 19.91 kB / 0.9342 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.038e-05/0.2403, allocations: 4 kB / 0.9342 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.227e-05/0.2403, allocations: 4 kB / 0.9342 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.2403, allocations: 15.92 kB / 0.9342 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.859e-05/0.2404, allocations: 37.64 kB / 0.9342 GB, free: 22.9 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 9.596e-05/0.2405, allocations: 43.84 kB / 0.9343 GB, free: 22.86 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2405, allocations: 4 kB / 0.9343 GB, free: 22.86 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.723e-06/0.2405, allocations: 3.938 kB / 0.9343 GB, free: 22.85 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.2405, allocations: 0 / 0.9343 GB, free: 22.85 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005617/0.2411, allocations: 363.7 kB / 0.9346 GB, free: 22.45 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.2411, allocations: 15.92 kB / 0.9346 GB, free: 22.43 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.2412, allocations: 8.875 kB / 0.9346 GB, free: 22.42 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.634e-05/0.2413, allocations: 176.2 kB / 0.9348 GB, free: 22.21 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.2413, allocations: 4.375 kB / 0.9348 GB, free: 22.21 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.2413, allocations: 4.375 kB / 0.9348 GB, free: 22.2 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001916/0.2415, allocations: 74.22 kB / 0.9349 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.2415, allocations: 192 / 0.9349 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.2416, allocations: 3.938 kB / 0.9349 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.2416, allocations: 4 kB / 0.9349 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2417, allocations: 51.95 kB / 0.9349 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003697/0.2421, allocations: 280.8 kB / 0.9352 GB, free: 21.74 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.2423, allocations: 62.48 kB / 0.9353 GB, free: 21.67 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.617e-05/0.2424, allocations: 40.95 kB / 0.9353 GB, free: 21.63 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.2424, allocations: 0 / 0.9353 GB, free: 21.63 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.2426, allocations: 83.31 kB / 0.9354 GB, free: 21.54 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.2426, allocations: 0 / 0.9354 GB, free: 21.54 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0003942/0.243, allocations: 141.5 kB / 0.9355 GB, free: 21.39 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.2431, allocations: 55.41 kB / 0.9356 GB, free: 21.32 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.657e-05/0.2432, allocations: 101.8 kB / 0.9357 GB, free: 21.21 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.2432, allocations: 33.7 kB / 0.9357 GB, free: 21.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.146e-05/0.2432, allocations: 84.14 kB / 0.9358 GB, free: 21.09 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.2432, allocations: 15.88 kB / 0.9358 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.2432, allocations: 4 kB / 0.9358 GB, free: 21.07 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 5.825e-05/0.2433, allocations: 314.8 kB / 0.9361 GB, free: 20.75 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-05/0.2434, allocations: 31.98 kB / 0.9361 GB, free: 20.72 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/0.2435, allocations: 68.2 kB / 0.9362 GB, free: 20.64 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.2437, allocations: 108.1 kB / 0.9363 GB, free: 20.52 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2437, allocations: 4 kB / 0.9363 GB, free: 20.52 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002251/0.2439, allocations: 125.5 kB / 0.9364 GB, free: 20.39 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.244, allocations: 7.938 kB / 0.9364 GB, free: 20.38 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.244, allocations: 0 / 0.9364 GB, free: 20.38 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.244, allocations: 4 kB / 0.9364 GB, free: 20.38 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2441, allocations: 19.98 kB / 0.9365 GB, free: 20.36 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.2441, allocations: 192 / 0.9365 GB, free: 20.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.27e-05/0.2442, allocations: 20.05 kB / 0.9365 GB, free: 20.34 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.2442, allocations: 7.938 kB / 0.9365 GB, free: 20.33 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.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 7.019e-05/0.2443, allocations: 134.2 kB / 0.9366 GB, free: 20.19 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.2443, allocations: 3.906 kB / 0.9366 GB, free: 20.18 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002752/0.2446, allocations: 118 kB / 0.9367 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2446, allocations: 0 / 0.9367 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2446, allocations: 0 / 0.9367 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2446, allocations: 4 kB / 0.9367 GB, free: 20.06 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003627/0.245, allocations: 374.4 kB / 0.9371 GB, free: 19.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.245, allocations: 0 / 0.9371 GB, free: 19.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/0.245, allocations: 15.98 kB / 0.9371 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2451, allocations: 0 / 0.9371 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.2451, allocations: 256 / 0.9371 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2451, allocations: 0 / 0.9371 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2451, allocations: 4.469 kB / 0.9371 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002388/0.2453, allocations: 219.3 kB / 0.9373 GB, free: 19.39 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 2.332e-05/0.2454, allocations: 81.05 kB / 0.9374 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.2454, allocations: 0 / 0.9374 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.053e-05/0.2455, allocations: 15.98 kB / 0.9374 GB, free: 19.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.2455, allocations: 8 kB / 0.9374 GB, free: 19.27 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.2456, allocations: 7.938 kB / 0.9374 GB, free: 19.26 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.596e-05/0.2456, allocations: 83.27 kB / 0.9375 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2456, allocations: 0 / 0.9375 GB, free: 19.18 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002013/0.2458, allocations: 12 kB / 0.9375 GB, free: 19.16 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 (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 9.841e-05/0.2459, allocations: 103.8 kB / 0.9376 GB, free: 19.05 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002376/0.2461, allocations: 83.88 kB / 0.9377 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2462, allocations: 0 / 0.9377 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.2463, allocations: 40.22 kB / 0.9377 GB, free: 18.93 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.2465, allocations: 15.98 kB / 0.9378 GB, free: 18.92 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/0.2468, allocations: 156.4 kB / 0.9379 GB, free: 18.73 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.247, allocations: 0.6809 MB / 0.9386 GB, free: 18.03 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.478e-05/0.247, allocations: 7.984 kB / 0.9386 GB, free: 18.02 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.2471, allocations: 15.44 kB / 0.9386 GB, free: 18 MB / 0.5886 GB Notification: Performance of SimCode: time 3.41e-07/0.2471, allocations: 0 / 0.9386 GB, free: 18 MB / 0.5886 GB Notification: Performance of Templates: time 0.002464/0.2495, allocations: 0.5918 MB / 0.9392 GB, free: 17.42 MB / 0.5886 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)