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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") 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.564/1.564, allocations: 255.9 MB / 271.2 MB, free: 8.926 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.001082/0.001082, allocations: 197.6 kB / 330.8 MB, free: 488 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.825/1.825, allocations: 225.7 MB / 0.6016 GB, free: 1.641 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.0008113/0.0008111, allocations: 103.5 kB / 0.709 GB, free: 7.109 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0003888/0.0003889, allocations: 12 kB / 0.8261 GB, free: 115.6 MB / 0.573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2205, allocations: 109.2 MB / 0.9328 GB, free: 6.258 MB / 0.573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001455/0.222, allocations: 1.111 MB / 0.9338 GB, free: 5.137 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.0004602/0.2225, allocations: 219.4 kB / 0.9341 GB, free: 4.922 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.957e-05/0.2226, allocations: 11.94 kB / 0.9341 GB, free: 4.91 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 2.164e-05/0.2226, allocations: 3.938 kB / 0.9341 GB, free: 4.906 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 7.283e-05/0.2227, allocations: 3.938 kB / 0.9341 GB, free: 4.902 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002372/0.2229, allocations: 31.95 kB / 0.9341 GB, free: 4.871 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 8.575e-05/0.223, allocations: 63.84 kB / 0.9342 GB, free: 4.809 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.2232, allocations: 11.98 kB / 0.9342 GB, free: 4.797 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 8.773e-05/0.2233, allocations: 19.92 kB / 0.9342 GB, free: 4.777 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.846e-05/0.2233, allocations: 31.83 kB / 0.9342 GB, free: 4.746 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.2234, allocations: 8 kB / 0.9342 GB, free: 4.738 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.2234, allocations: 4 kB / 0.9342 GB, free: 4.734 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.2234, allocations: 7.984 kB / 0.9342 GB, free: 4.727 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 5.404e-05/0.2235, allocations: 53.56 kB / 0.9343 GB, free: 4.668 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 9.573e-05/0.2236, allocations: 59.75 kB / 0.9344 GB, free: 4.609 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2236, allocations: 0 / 0.9344 GB, free: 4.609 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2236, allocations: 0 / 0.9344 GB, free: 4.609 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.2236, allocations: 0 / 0.9344 GB, free: 4.609 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005214/0.2241, allocations: 375.7 kB / 0.9347 GB, free: 4.191 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2242, allocations: 11.98 kB / 0.9347 GB, free: 4.18 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.325e-05/0.2242, allocations: 8.844 kB / 0.9347 GB, free: 4.172 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.617e-05/0.2243, allocations: 172.3 kB / 0.9349 GB, free: 3.965 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.2244, allocations: 4.375 kB / 0.9349 GB, free: 3.961 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.2244, allocations: 12.31 kB / 0.9349 GB, free: 3.949 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.2246, allocations: 86.2 kB / 0.935 GB, free: 3.859 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2246, allocations: 192 / 0.935 GB, free: 3.859 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2246, allocations: 7.938 kB / 0.935 GB, free: 3.852 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2246, allocations: 4 kB / 0.935 GB, free: 3.848 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.2248, allocations: 59.95 kB / 0.9351 GB, free: 3.789 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004133/0.2253, allocations: 308.7 kB / 0.9354 GB, free: 3.438 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001804/0.2255, allocations: 94.41 kB / 0.9354 GB, free: 3.336 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.2256, allocations: 48.83 kB / 0.9355 GB, free: 3.285 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.2256, allocations: 7.984 kB / 0.9355 GB, free: 3.277 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.2258, allocations: 95.55 kB / 0.9356 GB, free: 3.172 MB / 0.573 GB Notification: Performance of pre-optimization done (n=10): time 2.405e-06/0.2259, allocations: 0 / 0.9356 GB, free: 3.172 MB / 0.573 GB Notification: Performance of matching and sorting (n=10): time 0.0004504/0.2263, allocations: 181.5 kB / 0.9358 GB, free: 2.988 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.2264, allocations: 67.33 kB / 0.9358 GB, free: 2.91 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.885e-05/0.2264, allocations: 113.8 kB / 0.9359 GB, free: 2.789 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.2265, allocations: 29.7 kB / 0.936 GB, free: 2.754 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.2265, allocations: 84.38 kB / 0.936 GB, free: 2.664 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.2265, allocations: 27.64 kB / 0.9361 GB, free: 2.637 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-06/0.2265, allocations: 4 kB / 0.9361 GB, free: 2.633 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 6.725e-05/0.2266, allocations: 318.8 kB / 0.9364 GB, free: 2.312 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2267, allocations: 43.97 kB / 0.9364 GB, free: 2.27 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.2269, allocations: 63.41 kB / 0.9365 GB, free: 2.195 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.2271, allocations: 123.2 kB / 0.9366 GB, free: 2.062 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2271, allocations: 0 / 0.9366 GB, free: 2.062 MB / 0.573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002878/0.2274, allocations: 161.5 kB / 0.9368 GB, free: 1.898 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2274, allocations: 7.906 kB / 0.9368 GB, free: 1.891 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2274, allocations: 0 / 0.9368 GB, free: 1.891 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2274, allocations: 4 kB / 0.9368 GB, free: 1.887 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2276, allocations: 23.92 kB / 0.9368 GB, free: 1.863 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2276, allocations: 4.094 kB / 0.9368 GB, free: 1.859 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.015e-05/0.2277, allocations: 15.92 kB / 0.9368 GB, free: 1.844 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.2277, allocations: 8 kB / 0.9368 GB, free: 1.836 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.18e-05/0.2278, allocations: 129 kB / 0.9369 GB, free: 1.703 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.477e-05/0.2278, allocations: 7.906 kB / 0.9369 GB, free: 1.695 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.2281, allocations: 154 kB / 0.9371 GB, free: 1.539 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.2281, allocations: 4 kB / 0.9371 GB, free: 1.535 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2282, allocations: 3.984 kB / 0.9371 GB, free: 1.531 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2282, allocations: 3.938 kB / 0.9371 GB, free: 1.527 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.2286, allocations: 423.1 kB / 0.9375 GB, free: 1.059 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2286, allocations: 0 / 0.9375 GB, free: 1.059 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.594e-05/0.2287, allocations: 15.98 kB / 0.9375 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2287, allocations: 96 / 0.9375 GB, free: 1.043 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2287, allocations: 7.938 kB / 0.9375 GB, free: 1.035 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2287, allocations: 0 / 0.9375 GB, free: 1.035 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2287, allocations: 0 / 0.9375 GB, free: 1.035 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002913/0.229, allocations: 255.3 kB / 0.9378 GB, free: 0.7695 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.2291, allocations: 81.02 kB / 0.9378 GB, free: 0.6719 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.2291, allocations: 0 / 0.9378 GB, free: 0.6719 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.942e-05/0.2292, allocations: 19.98 kB / 0.9379 GB, free: 0.6523 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.2292, allocations: 7.984 kB / 0.9379 GB, free: 0.6445 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.2293, allocations: 7.938 kB / 0.9379 GB, free: 0.6367 MB / 0.573 GB Notification: Performance of sorting global known variables: time 2.688e-05/0.2293, allocations: 83.22 kB / 0.938 GB, free: 0.5547 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.51e-07/0.2293, allocations: 0 / 0.938 GB, free: 0.5547 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0002188/0.2295, allocations: 23.94 kB / 0.938 GB, free: 0.5312 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001621/0.2297, allocations: 116.4 kB / 0.9381 GB, free: 420 kB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0002737/0.23, allocations: 103.9 kB / 0.9382 GB, free: 316 kB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.23, allocations: 0 / 0.9382 GB, free: 316 kB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.2301, allocations: 60.16 kB / 0.9383 GB, free: 256 kB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2304, allocations: 8 kB / 0.9383 GB, free: 248 kB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003532/0.2307, allocations: 169.3 kB / 0.9384 GB, free: 48 kB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.2311, allocations: 0.6887 MB / 0.9391 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.088e-05/0.2311, allocations: 8.438 kB / 0.9391 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.2312, allocations: 11.44 kB / 0.9391 GB, free: 15.31 MB / 0.5886 GB Notification: Performance of SimCode: time 2.81e-07/0.2312, allocations: 0 / 0.9391 GB, free: 15.31 MB / 0.5886 GB Notification: Performance of Templates: time 0.003214/0.2344, allocations: 0.7825 MB / 0.9399 GB, free: 14.54 MB / 0.5886 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)