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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.187/2.187, allocations: 254.9 MB / 269.9 MB, free: 9.633 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.001363/0.001363, allocations: 187 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.702/2.702, allocations: 225.6 MB / 0.6001 GB, free: 2.246 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.0009986/0.0009986, allocations: 105.5 kB / 0.7074 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0006686/0.0006689, allocations: 11.41 kB / 0.8242 GB, free: 124.3 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2464, allocations: 109.1 MB / 0.9308 GB, free: 25.11 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001518/0.248, allocations: 1.1 MB / 0.9319 GB, free: 24 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0005217/0.2485, allocations: 227.4 kB / 0.9321 GB, free: 23.78 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.348e-05/0.2486, allocations: 0 / 0.9321 GB, free: 23.78 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 1.917e-05/0.2486, allocations: 3.938 kB / 0.9321 GB, free: 23.78 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.631e-05/0.2487, allocations: 11.92 kB / 0.9321 GB, free: 23.77 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2489, allocations: 31.91 kB / 0.9321 GB, free: 23.73 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.499e-05/0.249, allocations: 59.84 kB / 0.9322 GB, free: 23.68 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.2492, allocations: 15.89 kB / 0.9322 GB, free: 23.66 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.827e-05/0.2493, allocations: 19.92 kB / 0.9322 GB, free: 23.64 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 6.132e-05/0.2493, allocations: 23.91 kB / 0.9322 GB, free: 23.62 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.2494, allocations: 4 kB / 0.9322 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.2494, allocations: 4 kB / 0.9322 GB, free: 23.61 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.083e-05/0.2494, allocations: 7.984 kB / 0.9322 GB, free: 23.6 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.467e-05/0.2495, allocations: 45.64 kB / 0.9323 GB, free: 23.55 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 8.428e-05/0.2496, allocations: 39.89 kB / 0.9323 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2496, allocations: 0 / 0.9323 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.904e-06/0.2496, allocations: 0 / 0.9323 GB, free: 23.51 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.2496, allocations: 0 / 0.9323 GB, free: 23.51 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000653/0.2503, allocations: 382.8 kB / 0.9327 GB, free: 23.09 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.2503, allocations: 8.031 kB / 0.9327 GB, free: 23.08 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.135e-05/0.2504, allocations: 8.844 kB / 0.9327 GB, free: 23.07 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.415e-05/0.2505, allocations: 180.3 kB / 0.9329 GB, free: 22.86 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.044e-05/0.2505, allocations: 4.312 kB / 0.9329 GB, free: 22.86 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2505, allocations: 8.375 kB / 0.9329 GB, free: 22.85 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.2508, allocations: 94.12 kB / 0.933 GB, free: 22.75 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2509, allocations: 4.188 kB / 0.933 GB, free: 22.75 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.2509, allocations: 3.938 kB / 0.933 GB, free: 22.74 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.2509, allocations: 0 / 0.933 GB, free: 22.74 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003392/0.2513, allocations: 63.95 kB / 0.933 GB, free: 22.68 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005311/0.2518, allocations: 300.9 kB / 0.9333 GB, free: 22.34 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2521, allocations: 94.41 kB / 0.9334 GB, free: 22.23 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.2523, allocations: 48.83 kB / 0.9335 GB, free: 22.18 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.943e-05/0.2524, allocations: 4 kB / 0.9335 GB, free: 22.18 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.2527, allocations: 99.48 kB / 0.9336 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 3.156e-06/0.2527, allocations: 0 / 0.9336 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0007502/0.2534, allocations: 185.4 kB / 0.9337 GB, free: 21.88 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.2535, allocations: 63.39 kB / 0.9338 GB, free: 21.81 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.855e-05/0.2536, allocations: 105.8 kB / 0.9339 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.2536, allocations: 33.7 kB / 0.9339 GB, free: 21.66 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.2537, allocations: 92.28 kB / 0.934 GB, free: 21.56 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.2537, allocations: 31.62 kB / 0.9341 GB, free: 21.53 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.235e-06/0.2537, allocations: 0 / 0.9341 GB, free: 21.53 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.589e-05/0.2538, allocations: 314.8 kB / 0.9344 GB, free: 21.21 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.254, allocations: 39.97 kB / 0.9344 GB, free: 21.17 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.2542, allocations: 79.34 kB / 0.9345 GB, free: 21.08 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.2545, allocations: 55.95 kB / 0.9345 GB, free: 21.03 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2545, allocations: 4 kB / 0.9345 GB, free: 21.02 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004893/0.255, allocations: 149.5 kB / 0.9347 GB, free: 20.87 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.255, allocations: 4 kB / 0.9347 GB, free: 20.87 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.255, allocations: 4 kB / 0.9347 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.2551, allocations: 4.094 kB / 0.9347 GB, free: 20.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.2553, allocations: 19.98 kB / 0.9347 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.2553, allocations: 4 kB / 0.9347 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.2554, allocations: 23.83 kB / 0.9347 GB, free: 20.81 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.2555, allocations: 4 kB / 0.9347 GB, free: 20.81 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.2556, allocations: 128 kB / 0.9349 GB, free: 20.68 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.2556, allocations: 7.906 kB / 0.9349 GB, free: 20.67 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005426/0.2562, allocations: 157.9 kB / 0.935 GB, free: 20.51 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2562, allocations: 3.938 kB / 0.935 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2562, allocations: 0 / 0.935 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2562, allocations: 0 / 0.935 GB, free: 20.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.2569, allocations: 414.9 kB / 0.9354 GB, free: 20.04 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-06/0.257, allocations: 0 / 0.9354 GB, free: 20.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001272/0.2571, allocations: 15.98 kB / 0.9354 GB, free: 20.03 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2571, allocations: 0 / 0.9354 GB, free: 20.03 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.2572, allocations: 12.23 kB / 0.9354 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.2572, allocations: 96 / 0.9354 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2572, allocations: 7.938 kB / 0.9354 GB, free: 20.01 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005094/0.2577, allocations: 247.3 kB / 0.9357 GB, free: 19.75 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.2577, allocations: 77.11 kB / 0.9358 GB, free: 19.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.2578, allocations: 11.98 kB / 0.9358 GB, free: 19.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001646/0.258, allocations: 8 kB / 0.9358 GB, free: 19.64 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.478e-05/0.258, allocations: 11.97 kB / 0.9358 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.2581, allocations: 7.875 kB / 0.9358 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.99e-05/0.2581, allocations: 91.27 kB / 0.9359 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2581, allocations: 0 / 0.9359 GB, free: 19.53 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003085/0.2584, allocations: 27.84 kB / 0.9359 GB, free: 19.5 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: 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 (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.0001204/0.2586, allocations: 103.8 kB / 0.936 GB, free: 19.39 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004686/0.259, allocations: 107.9 kB / 0.9361 GB, free: 19.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2591, allocations: 4.188 kB / 0.9361 GB, free: 19.28 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002157/0.2593, allocations: 51.91 kB / 0.9362 GB, free: 19.23 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.2596, allocations: 11.98 kB / 0.9362 GB, free: 19.22 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004458/0.2601, allocations: 173.3 kB / 0.9363 GB, free: 19.02 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.2603, allocations: 0.6848 MB / 0.937 GB, free: 18.31 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.437e-05/0.2603, allocations: 8.422 kB / 0.937 GB, free: 18.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2604, allocations: 11.44 kB / 0.937 GB, free: 18.29 MB / 0.5886 GB Notification: Performance of SimCode: time 1.022e-06/0.2604, allocations: 0 / 0.937 GB, free: 18.29 MB / 0.5886 GB Notification: Performance of Templates: time 0.003817/0.2642, allocations: 0.7385 MB / 0.9378 GB, free: 17.55 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)