Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.689/1.689, allocations: 291.7 MB / 306.8 MB, free: 7.691 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.001382/0.001382, allocations: 183 kB / 375.4 MB, free: 5.141 MB / 298.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.466/1.466, allocations: 225.7 MB / 0.6538 GB, free: 13.62 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.000835/0.0008349, allocations: 94.58 kB / 0.7699 GB, free: 50.46 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004133/0.0004133, allocations: 12 kB / 0.8956 GB, free: 11.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7771/0.7775, allocations: 118.1 MB / 1.011 GB, free: 57.77 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001081/0.7786, allocations: 394.1 kB / 1.011 GB, free: 57.76 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.7801, allocations: 1.039 MB / 1.012 GB, free: 57.7 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.789e-05/0.7801, allocations: 1.25 kB / 1.012 GB, free: 57.7 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.271e-05/0.7801, allocations: 0 / 1.012 GB, free: 57.7 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.763e-05/0.7802, allocations: 10.75 kB / 1.012 GB, free: 57.7 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002378/0.7805, allocations: 38.22 kB / 1.012 GB, free: 57.7 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 8.007e-05/0.7806, allocations: 43.95 kB / 1.012 GB, free: 57.69 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 9.897e-05/0.7807, allocations: 13.08 kB / 1.012 GB, free: 57.69 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 6.407e-05/0.7807, allocations: 16.22 kB / 1.012 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.292e-05/0.7808, allocations: 20.75 kB / 1.012 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.7808, allocations: 0 / 1.012 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.801e-05/0.7809, allocations: 15.75 kB / 1.012 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.143e-05/0.7809, allocations: 12.48 kB / 1.012 GB, free: 57.68 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.404e-05/0.781, allocations: 30.52 kB / 1.012 GB, free: 57.65 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.7811, allocations: 40.89 kB / 1.013 GB, free: 57.64 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.7811, allocations: 3.938 kB / 1.013 GB, free: 57.64 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7811, allocations: 1.156 kB / 1.013 GB, free: 57.64 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.7811, allocations: 1.781 kB / 1.013 GB, free: 57.64 MB / 0.7136 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.0004895/0.7816, allocations: 370.3 kB / 1.013 GB, free: 57.28 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.7816, allocations: 10.38 kB / 1.013 GB, free: 57.28 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.7817, allocations: 7.531 kB / 1.013 GB, free: 57.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.178e-05/0.7818, allocations: 163.4 kB / 1.013 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.7818, allocations: 8.875 kB / 1.013 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.7818, allocations: 5.156 kB / 1.013 GB, free: 57.08 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.782, allocations: 73.02 kB / 1.013 GB, free: 57.04 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.782, allocations: 192 / 1.013 GB, free: 57.04 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.782, allocations: 9.344 kB / 1.013 GB, free: 57.04 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.7821, allocations: 0 / 1.013 GB, free: 57.04 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.7822, allocations: 57.38 kB / 1.013 GB, free: 57.04 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003748/0.7826, allocations: 279.9 kB / 1.013 GB, free: 56.77 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.7828, allocations: 65.33 kB / 1.014 GB, free: 56.75 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.247e-05/0.7829, allocations: 37.38 kB / 1.014 GB, free: 56.74 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.7829, allocations: 3.375 kB / 1.014 GB, free: 56.74 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.7831, allocations: 85.62 kB / 1.014 GB, free: 56.69 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.7831, allocations: 0.5 kB / 1.014 GB, free: 56.69 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0004306/0.7835, allocations: 141.9 kB / 1.014 GB, free: 56.65 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.7836, allocations: 52.75 kB / 1.014 GB, free: 56.59 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.241e-05/0.7837, allocations: 105.3 kB / 1.014 GB, free: 56.49 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.7837, allocations: 33.61 kB / 1.014 GB, free: 56.46 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.26e-05/0.7837, allocations: 88.73 kB / 1.014 GB, free: 56.38 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.7837, allocations: 19.34 kB / 1.014 GB, free: 56.36 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.7838, allocations: 0 / 1.014 GB, free: 56.36 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.535e-05/0.7838, allocations: 322.4 kB / 1.014 GB, free: 56.05 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.656e-05/0.7839, allocations: 35.67 kB / 1.014 GB, free: 56.05 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.784, allocations: 64.16 kB / 1.014 GB, free: 56.01 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/0.7842, allocations: 108.7 kB / 1.015 GB, free: 55.96 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.7843, allocations: 0 / 1.015 GB, free: 55.96 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002489/0.7845, allocations: 124.7 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.7845, allocations: 5.875 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.7845, allocations: 2.594 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.7846, allocations: 0 / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.7847, allocations: 21.09 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.7847, allocations: 4.859 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.7848, allocations: 16.94 kB / 1.015 GB, free: 55.92 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.7848, allocations: 5.125 kB / 1.015 GB, free: 55.92 MB / 0.7136 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 6.875e-05/0.7849, allocations: 124.5 kB / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.7849, allocations: 4.141 kB / 1.015 GB, free: 55.8 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002709/0.7852, allocations: 117.4 kB / 1.015 GB, free: 55.76 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.7852, allocations: 0 / 1.015 GB, free: 55.76 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.7852, allocations: 4.828 kB / 1.015 GB, free: 55.76 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7852, allocations: 7.859 kB / 1.015 GB, free: 55.76 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.7856, allocations: 376.7 kB / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.7856, allocations: 0.5 kB / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.022e-05/0.7856, allocations: 15.69 kB / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.7856, allocations: 0 / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.7857, allocations: 7.531 kB / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.7857, allocations: 0 / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7857, allocations: 0 / 1.015 GB, free: 55.45 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.7859, allocations: 215 kB / 1.016 GB, free: 55.31 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.091e-05/0.786, allocations: 81.61 kB / 1.016 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.786, allocations: 2.938 kB / 1.016 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.389e-05/0.7861, allocations: 17.88 kB / 1.016 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.7861, allocations: 5.031 kB / 1.016 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.7862, allocations: 11.34 kB / 1.016 GB, free: 55.21 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.592e-05/0.7862, allocations: 82 kB / 1.016 GB, free: 55.14 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7862, allocations: 0 / 1.016 GB, free: 55.14 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002279/0.7864, allocations: 11.5 kB / 1.016 GB, free: 55.14 MB / 0.7136 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.0001218/0.7866, allocations: 116.1 kB / 1.016 GB, free: 55.05 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002479/0.7868, allocations: 81.92 kB / 1.016 GB, free: 55.04 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.7868, allocations: 0 / 1.016 GB, free: 55.04 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.7869, allocations: 44.73 kB / 1.016 GB, free: 55.04 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.7872, allocations: 5.828 kB / 1.016 GB, free: 55.04 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002998/0.7875, allocations: 146.8 kB / 1.016 GB, free: 54.92 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001026/0.7876, allocations: 0.6856 MB / 1.017 GB, free: 54.22 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.223e-05/0.7876, allocations: 1.125 kB / 1.017 GB, free: 54.22 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.161e-05/0.7877, allocations: 14.66 kB / 1.017 GB, free: 54.21 MB / 0.7136 GB Notification: Performance of SimCode: time 2.3e-07/0.7877, allocations: 0 / 1.017 GB, free: 54.21 MB / 0.7136 GB Notification: Performance of Templates: time 0.002684/0.7904, allocations: 0.721 MB / 1.018 GB, free: 54.18 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)