Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01546/0.01547, allocations: 110.9 kB / 15.06 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001697/0.001697, allocations: 185.9 kB / 15.94 MB, free: 5.926 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.934/1.934, allocations: 194.6 MB / 211.3 MB, free: 11.06 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.411/2.411, allocations: 236.2 MB / 492.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004709, allocations: 12 kB / 0.5869 GB, free: 2.172 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6178/0.6183, allocations: 98.7 MB / 0.6833 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1863/0.8047, allocations: 124.7 MB / 0.8051 GB, free: 1.59 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.805, allocations: 75.95 kB / 0.8052 GB, free: 1.516 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003369/0.8084, allocations: 0.9521 MB / 0.8061 GB, free: 0.5586 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.694e-06/0.8085, allocations: 0 / 0.8061 GB, free: 0.5586 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.391e-05/0.8085, allocations: 4 kB / 0.8061 GB, free: 0.5547 MB / 0.6198 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.000551/0.809, allocations: 371.1 kB / 0.8065 GB, free: 148 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.8091, allocations: 12.03 kB / 0.8065 GB, free: 136 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.8091, allocations: 8 kB / 0.8065 GB, free: 128 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.8093, allocations: 174.9 kB / 0.8067 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.8094, allocations: 4 kB / 0.8067 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.8094, allocations: 8 kB / 0.8067 GB, free: 15.9 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.8097, allocations: 89.52 kB / 0.8068 GB, free: 15.81 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.8097, allocations: 3.938 kB / 0.8068 GB, free: 15.8 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.8097, allocations: 8 kB / 0.8068 GB, free: 15.8 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.839e-06/0.8097, allocations: 4 kB / 0.8068 GB, free: 15.79 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002572/0.81, allocations: 59.89 kB / 0.8068 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006629/0.8107, allocations: 332.7 kB / 0.8072 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.8109, allocations: 82.55 kB / 0.8072 GB, free: 15.27 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.811, allocations: 7.984 kB / 0.8072 GB, free: 15.26 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.8113, allocations: 95.48 kB / 0.8073 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.943e-06/0.8113, allocations: 0 / 0.8073 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0006227/0.8119, allocations: 193.5 kB / 0.8075 GB, free: 14.96 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.812, allocations: 55.36 kB / 0.8076 GB, free: 14.89 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.928e-05/0.8121, allocations: 101 kB / 0.8077 GB, free: 14.79 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.8122, allocations: 33.7 kB / 0.8077 GB, free: 14.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.756e-05/0.8122, allocations: 84.38 kB / 0.8078 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.8123, allocations: 31.64 kB / 0.8078 GB, free: 14.63 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.086e-06/0.8123, allocations: 0 / 0.8078 GB, free: 14.63 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.8125, allocations: 322.8 kB / 0.8081 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.8126, allocations: 35.98 kB / 0.8082 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.8128, allocations: 75.39 kB / 0.8082 GB, free: 14.18 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.813, allocations: 48.03 kB / 0.8083 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-06/0.813, allocations: 3.938 kB / 0.8083 GB, free: 14.13 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005036/0.8135, allocations: 149.5 kB / 0.8084 GB, free: 13.98 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.8136, allocations: 9.406 kB / 0.8084 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.192e-06/0.8136, allocations: 0 / 0.8084 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.8137, allocations: 0 / 0.8084 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.8138, allocations: 32.02 kB / 0.8085 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.069e-06/0.8139, allocations: 3.984 kB / 0.8085 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.814, allocations: 24.22 kB / 0.8085 GB, free: 13.91 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.814, allocations: 4 kB / 0.8085 GB, free: 13.91 MB / 0.6355 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.0001301/0.8142, allocations: 121.8 kB / 0.8086 GB, free: 13.78 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.8142, allocations: 0 / 0.8086 GB, free: 13.78 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004787/0.8147, allocations: 165.8 kB / 0.8088 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.79e-06/0.8147, allocations: 0 / 0.8088 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.549e-06/0.8147, allocations: 4 kB / 0.8088 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.461e-06/0.8147, allocations: 3.984 kB / 0.8088 GB, free: 13.6 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007443/0.8155, allocations: 418.3 kB / 0.8092 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-06/0.8155, allocations: 0 / 0.8092 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.8156, allocations: 23.86 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.649e-06/0.8156, allocations: 3.984 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.8157, allocations: 4.25 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.006e-06/0.8157, allocations: 4 kB / 0.8092 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.745e-06/0.8157, allocations: 11.95 kB / 0.8092 GB, free: 13.09 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004712/0.8162, allocations: 239.3 kB / 0.8094 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.677e-05/0.8163, allocations: 81.11 kB / 0.8095 GB, free: 12.74 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.8163, allocations: 8 kB / 0.8095 GB, free: 12.73 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.8165, allocations: 11.98 kB / 0.8095 GB, free: 12.72 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.8165, allocations: 7.984 kB / 0.8096 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.8166, allocations: 7.953 kB / 0.8096 GB, free: 12.71 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.18e-05/0.8166, allocations: 83.28 kB / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.44e-07/0.8166, allocations: 0 / 0.8096 GB, free: 12.62 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003437/0.817, allocations: 16 kB / 0.8097 GB, free: 12.61 MB / 0.6355 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.0001546/0.8172, allocations: 115.2 kB / 0.8098 GB, free: 12.48 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003937/0.8176, allocations: 108.1 kB / 0.8099 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.713e-06/0.8176, allocations: 3.938 kB / 0.8099 GB, free: 12.38 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.8178, allocations: 52.16 kB / 0.8099 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.818, allocations: 8 kB / 0.8099 GB, free: 12.32 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004392/0.8185, allocations: 161.4 kB / 0.8101 GB, free: 12.13 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.8188, allocations: 0.6965 MB / 0.8108 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.769e-05/0.8189, allocations: 8.422 kB / 0.8108 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.164e-05/0.8189, allocations: 15.44 kB / 0.8108 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of SimCode: time 1.393e-06/0.819, allocations: 3.938 kB / 0.8108 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of Templates: time 0.003535/0.8225, allocations: 0.7275 MB / 0.8115 GB, free: 10.66 MB / 0.6355 GB