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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.555/2.555, allocations: 254.9 MB / 269.9 MB, free: 9.645 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.001382/0.001382, allocations: 191.9 kB / 329.5 MB, free: 1.176 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.503/2.503, allocations: 225.6 MB / 0.6001 GB, free: 480 kB / 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.0009375/0.0009373, allocations: 102 kB / 0.7074 GB, free: 6.234 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0004968/0.0004971, allocations: 13.19 kB / 0.8242 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2205, allocations: 109.1 MB / 0.9308 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001592/0.2221, allocations: 1.084 MB / 0.9318 GB, free: 23.79 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0005464/0.2227, allocations: 227.4 kB / 0.932 GB, free: 23.57 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.204e-05/0.2228, allocations: 3.938 kB / 0.9321 GB, free: 23.57 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.735e-05/0.2228, allocations: 0 / 0.9321 GB, free: 23.57 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.824e-05/0.2229, allocations: 11.92 kB / 0.9321 GB, free: 23.55 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.2231, allocations: 19.98 kB / 0.9321 GB, free: 23.54 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.193e-05/0.2232, allocations: 43.84 kB / 0.9321 GB, free: 23.49 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.862e-05/0.2233, allocations: 4 kB / 0.9321 GB, free: 23.49 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.2234, allocations: 19.92 kB / 0.9321 GB, free: 23.47 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.271e-05/0.2235, allocations: 23.91 kB / 0.9322 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.2235, allocations: 4 kB / 0.9322 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.402e-05/0.2235, allocations: 0 / 0.9322 GB, free: 23.44 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.2236, allocations: 11.98 kB / 0.9322 GB, free: 23.43 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.263e-05/0.2236, allocations: 33.64 kB / 0.9322 GB, free: 23.39 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 7.655e-05/0.2237, allocations: 23.94 kB / 0.9322 GB, free: 23.37 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2237, allocations: 0 / 0.9322 GB, free: 23.37 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2237, allocations: 3.938 kB / 0.9322 GB, free: 23.36 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2237, allocations: 4 kB / 0.9322 GB, free: 23.36 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.0006138/0.2243, allocations: 371.6 kB / 0.9326 GB, free: 22.95 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2244, allocations: 8.031 kB / 0.9326 GB, free: 22.94 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.958e-05/0.2244, allocations: 8.938 kB / 0.9326 GB, free: 22.93 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.2246, allocations: 168.3 kB / 0.9328 GB, free: 22.73 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.2246, allocations: 4.375 kB / 0.9328 GB, free: 22.72 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.2246, allocations: 4.375 kB / 0.9328 GB, free: 22.72 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.2249, allocations: 78.2 kB / 0.9329 GB, free: 22.64 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.225, allocations: 192 / 0.9329 GB, free: 22.64 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.225, allocations: 3.938 kB / 0.9329 GB, free: 22.63 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.225, allocations: 4 kB / 0.9329 GB, free: 22.63 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.2253, allocations: 59.89 kB / 0.9329 GB, free: 22.57 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004493/0.2258, allocations: 272.8 kB / 0.9332 GB, free: 22.25 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.226, allocations: 70.42 kB / 0.9333 GB, free: 22.18 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.2262, allocations: 36.95 kB / 0.9333 GB, free: 22.14 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.2263, allocations: 3.984 kB / 0.9333 GB, free: 22.13 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002806/0.2266, allocations: 83.31 kB / 0.9334 GB, free: 22.04 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 3.056e-06/0.2266, allocations: 4 kB / 0.9334 GB, free: 22.04 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.000656/0.2272, allocations: 137.7 kB / 0.9335 GB, free: 21.89 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.2273, allocations: 59.41 kB / 0.9336 GB, free: 21.82 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.318e-05/0.2274, allocations: 101.8 kB / 0.9337 GB, free: 21.71 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.2274, allocations: 29.7 kB / 0.9337 GB, free: 21.68 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.2275, allocations: 88.05 kB / 0.9338 GB, free: 21.59 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.2275, allocations: 15.8 kB / 0.9338 GB, free: 21.57 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-06/0.2275, allocations: 4 kB / 0.9338 GB, free: 21.57 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.798e-05/0.2276, allocations: 310.8 kB / 0.9341 GB, free: 21.26 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.2278, allocations: 43.91 kB / 0.9341 GB, free: 21.21 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.228, allocations: 56.28 kB / 0.9342 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.2282, allocations: 43.91 kB / 0.9342 GB, free: 21.1 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2282, allocations: 0 / 0.9342 GB, free: 21.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004509/0.2287, allocations: 129.5 kB / 0.9343 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.2287, allocations: 8 kB / 0.9344 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2287, allocations: 0 / 0.9344 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.2287, allocations: 0 / 0.9344 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001819/0.2289, allocations: 19.98 kB / 0.9344 GB, free: 20.94 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.229, allocations: 4.188 kB / 0.9344 GB, free: 20.94 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.2291, allocations: 11.88 kB / 0.9344 GB, free: 20.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.2291, allocations: 15.94 kB / 0.9344 GB, free: 20.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.2292, allocations: 121.8 kB / 0.9345 GB, free: 20.78 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.2293, allocations: 7.906 kB / 0.9345 GB, free: 20.77 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004684/0.2297, allocations: 118 kB / 0.9346 GB, free: 20.65 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.2298, allocations: 4 kB / 0.9346 GB, free: 20.65 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.2298, allocations: 0 / 0.9346 GB, free: 20.65 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2298, allocations: 0 / 0.9346 GB, free: 20.65 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006158/0.2304, allocations: 366.4 kB / 0.935 GB, free: 20.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.2304, allocations: 4 kB / 0.935 GB, free: 20.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.2306, allocations: 11.98 kB / 0.935 GB, free: 20.22 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2306, allocations: 0 / 0.935 GB, free: 20.22 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.2306, allocations: 4.25 kB / 0.935 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.2306, allocations: 7.938 kB / 0.935 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2306, allocations: 0 / 0.935 GB, free: 20.21 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004226/0.2311, allocations: 215.8 kB / 0.9352 GB, free: 19.98 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.2311, allocations: 85.02 kB / 0.9353 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.2311, allocations: 3.984 kB / 0.9353 GB, free: 19.88 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.2313, allocations: 12 kB / 0.9353 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.2314, allocations: 7.984 kB / 0.9353 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.2314, allocations: 7.938 kB / 0.9353 GB, free: 19.85 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.864e-05/0.2314, allocations: 87.27 kB / 0.9354 GB, free: 19.76 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2315, allocations: 0 / 0.9354 GB, free: 19.76 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003012/0.2318, allocations: 12 kB / 0.9354 GB, free: 19.75 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 (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.0001153/0.2319, allocations: 99.25 kB / 0.9355 GB, free: 19.64 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004061/0.2323, allocations: 83.89 kB / 0.9356 GB, free: 19.56 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2323, allocations: 0 / 0.9356 GB, free: 19.56 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.2325, allocations: 39.98 kB / 0.9356 GB, free: 19.52 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.2329, allocations: 12.16 kB / 0.9357 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004063/0.2333, allocations: 154.7 kB / 0.9358 GB, free: 19.33 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.2335, allocations: 0.6809 MB / 0.9365 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.746e-05/0.2336, allocations: 4.141 kB / 0.9365 GB, free: 18.62 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.515e-05/0.2336, allocations: 11.44 kB / 0.9365 GB, free: 18.61 MB / 0.5886 GB Notification: Performance of SimCode: time 8.51e-07/0.2336, allocations: 0 / 0.9365 GB, free: 18.61 MB / 0.5886 GB Notification: Performance of Templates: time 0.003448/0.2371, allocations: 0.584 MB / 0.9371 GB, free: 18.03 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)