Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.772/1.772, allocations: 306.1 MB / 321.4 MB, free: 10.76 MB / 250.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.001116/0.001116, allocations: 175.5 kB / 393.1 MB, free: 4.09 MB / 314.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.547/1.547, allocations: 225.7 MB / 0.6743 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008501/0.00085, allocations: 97.77 kB / 0.7935 GB, free: 40.21 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0004794/0.0004794, allocations: 8 kB / 0.9224 GB, free: 8.664 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9051/0.9056, allocations: 121.3 MB / 1.041 GB, free: 59.05 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001191/0.9068, allocations: 401 kB / 1.041 GB, free: 58.83 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.9087, allocations: 1.119 MB / 1.042 GB, free: 57.96 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.146e-05/0.9088, allocations: 0 / 1.042 GB, free: 57.96 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.057e-05/0.9088, allocations: 2.016 kB / 1.042 GB, free: 57.96 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 8.663e-05/0.9089, allocations: 9.953 kB / 1.042 GB, free: 57.95 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.9092, allocations: 36.55 kB / 1.042 GB, free: 57.93 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.9094, allocations: 41.12 kB / 1.042 GB, free: 57.92 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.9095, allocations: 16.53 kB / 1.042 GB, free: 57.91 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.9096, allocations: 16.2 kB / 1.042 GB, free: 57.91 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 7.056e-05/0.9097, allocations: 19.94 kB / 1.042 GB, free: 57.9 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.9097, allocations: 2.094 kB / 1.042 GB, free: 57.9 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.355e-05/0.9098, allocations: 19.73 kB / 1.043 GB, free: 57.89 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.911e-05/0.9098, allocations: 18.59 kB / 1.043 GB, free: 57.88 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.755e-05/0.9099, allocations: 40.5 kB / 1.043 GB, free: 57.84 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.9101, allocations: 57.59 kB / 1.043 GB, free: 57.82 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.9101, allocations: 0.75 kB / 1.043 GB, free: 57.82 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9101, allocations: 1.438 kB / 1.043 GB, free: 57.82 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.9101, allocations: 1.406 kB / 1.043 GB, free: 57.82 MB / 0.698 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.0006086/0.9107, allocations: 372.3 kB / 1.043 GB, free: 57.45 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.9108, allocations: 9.406 kB / 1.043 GB, free: 57.45 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.9108, allocations: 8.156 kB / 1.043 GB, free: 57.45 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.9109, allocations: 164 kB / 1.043 GB, free: 57.25 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/0.911, allocations: 2.344 kB / 1.043 GB, free: 57.25 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.911, allocations: 3.594 kB / 1.043 GB, free: 57.25 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.9112, allocations: 75.36 kB / 1.043 GB, free: 57.21 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.9112, allocations: 192 / 1.043 GB, free: 57.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.9113, allocations: 4.688 kB / 1.043 GB, free: 57.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.9113, allocations: 2.391 kB / 1.043 GB, free: 57.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001978/0.9115, allocations: 55.38 kB / 1.043 GB, free: 57.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004526/0.9119, allocations: 276.2 kB / 1.044 GB, free: 56.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.9121, allocations: 71.77 kB / 1.044 GB, free: 56.88 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.9122, allocations: 41.12 kB / 1.044 GB, free: 56.86 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.9123, allocations: 4.406 kB / 1.044 GB, free: 56.86 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.9125, allocations: 81.59 kB / 1.044 GB, free: 56.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 1.983e-06/0.9125, allocations: 0.5 kB / 1.044 GB, free: 56.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.000457/0.913, allocations: 139.2 kB / 1.044 GB, free: 56.75 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.913, allocations: 51.41 kB / 1.044 GB, free: 56.69 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.616e-05/0.9131, allocations: 112.9 kB / 1.044 GB, free: 56.58 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.9131, allocations: 26.83 kB / 1.044 GB, free: 56.55 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.9132, allocations: 88.69 kB / 1.044 GB, free: 56.46 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.9132, allocations: 17.52 kB / 1.044 GB, free: 56.45 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.9132, allocations: 3.938 kB / 1.044 GB, free: 56.45 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.9133, allocations: 330.6 kB / 1.044 GB, free: 56.12 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.9134, allocations: 25.98 kB / 1.045 GB, free: 56.12 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.9135, allocations: 65.78 kB / 1.045 GB, free: 56.07 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.9138, allocations: 110 kB / 1.045 GB, free: 56 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.9138, allocations: 0 / 1.045 GB, free: 56 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002944/0.9141, allocations: 126.1 kB / 1.045 GB, free: 55.94 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.9141, allocations: 9.969 kB / 1.045 GB, free: 55.94 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.9141, allocations: 7.969 kB / 1.045 GB, free: 55.93 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.9142, allocations: 0 / 1.045 GB, free: 55.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.9143, allocations: 20.94 kB / 1.045 GB, free: 55.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.9143, allocations: 0 / 1.045 GB, free: 55.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.681e-05/0.9144, allocations: 9.719 kB / 1.045 GB, free: 55.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.9144, allocations: 12.31 kB / 1.045 GB, free: 55.93 MB / 0.698 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 8.708e-05/0.9145, allocations: 122.2 kB / 1.045 GB, free: 55.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.617e-05/0.9145, allocations: 4.219 kB / 1.045 GB, free: 55.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002972/0.9148, allocations: 115.7 kB / 1.045 GB, free: 55.75 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.9149, allocations: 0.625 kB / 1.045 GB, free: 55.75 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.9149, allocations: 3.531 kB / 1.045 GB, free: 55.75 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.9149, allocations: 5.734 kB / 1.045 GB, free: 55.75 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004282/0.9153, allocations: 375.1 kB / 1.045 GB, free: 55.41 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.9153, allocations: 0 / 1.045 GB, free: 55.41 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.9154, allocations: 20.64 kB / 1.045 GB, free: 55.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.9154, allocations: 1.125 kB / 1.045 GB, free: 55.4 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.9154, allocations: 5.766 kB / 1.045 GB, free: 55.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.9154, allocations: 0 / 1.045 GB, free: 55.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.9154, allocations: 0 / 1.045 GB, free: 55.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.9157, allocations: 207.8 kB / 1.046 GB, free: 55.25 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.9158, allocations: 88.31 kB / 1.046 GB, free: 55.15 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.9158, allocations: 0 / 1.046 GB, free: 55.15 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.611e-05/0.9159, allocations: 10.39 kB / 1.046 GB, free: 55.15 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.916, allocations: 9.062 kB / 1.046 GB, free: 55.14 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.916, allocations: 5.156 kB / 1.046 GB, free: 55.14 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.185e-05/0.916, allocations: 82.78 kB / 1.046 GB, free: 55.07 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.916, allocations: 4 kB / 1.046 GB, free: 55.06 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002392/0.9163, allocations: 15.59 kB / 1.046 GB, free: 55.06 MB / 0.698 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 0.0001755/0.9164, allocations: 118.3 kB / 1.046 GB, free: 54.96 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002807/0.9167, allocations: 79.38 kB / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.9167, allocations: 0 / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.9169, allocations: 47.5 kB / 1.046 GB, free: 54.93 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002622/0.9171, allocations: 13.03 kB / 1.046 GB, free: 54.93 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004077/0.9176, allocations: 148.3 kB / 1.046 GB, free: 54.79 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001514/0.9177, allocations: 0.6844 MB / 1.047 GB, free: 54.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.267e-05/0.9178, allocations: 4.391 kB / 1.047 GB, free: 54.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/0.9178, allocations: 11.47 kB / 1.047 GB, free: 54.09 MB / 0.698 GB Notification: Performance of SimCode: time 1.022e-06/0.9178, allocations: 0 / 1.047 GB, free: 54.09 MB / 0.698 GB Notification: Performance of Templates: time 0.003859/0.9217, allocations: 0.7399 MB / 1.048 GB, free: 54.01 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1)