Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.273/2.273, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 181.5 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.594/2.594, allocations: 205.4 MB / 0.5766 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 103.9 kB / 0.6811 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004526, allocations: 14.5 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2065, allocations: 106.3 MB / 0.8989 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.432, allocations: 131.5 MB / 1.027 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.4323, allocations: 67.95 kB / 1.027 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003646/0.4359, allocations: 0.8879 MB / 1.028 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.603e-06/0.436, allocations: 0 / 1.028 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.436, allocations: 0 / 1.028 GB, free: 12.81 MB / 0.6823 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.0006242/0.4367, allocations: 372.5 kB / 1.029 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4367, allocations: 8.031 kB / 1.029 GB, free: 12.39 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.651e-05/0.4368, allocations: 11.84 kB / 1.029 GB, free: 12.38 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.4369, allocations: 167 kB / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.4369, allocations: 4 kB / 1.029 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.437, allocations: 4 kB / 1.029 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.4373, allocations: 69.66 kB / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.4373, allocations: 4 kB / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.4373, allocations: 0 / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.4374, allocations: 4 kB / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.4377, allocations: 59.81 kB / 1.029 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006335/0.4383, allocations: 304.7 kB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/0.4386, allocations: 58.55 kB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.249e-05/0.4387, allocations: 4 kB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.439, allocations: 83.44 kB / 1.029 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 2.855e-06/0.439, allocations: 0 / 1.029 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0006837/0.4397, allocations: 137.7 kB / 1.029 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.4398, allocations: 59.36 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.822e-05/0.4399, allocations: 96.98 kB / 1.03 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.4399, allocations: 25.7 kB / 1.03 GB, free: 11.17 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.527e-05/0.44, allocations: 96.05 kB / 1.03 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.44, allocations: 15.75 kB / 1.03 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-06/0.4401, allocations: 4 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4402, allocations: 318.8 kB / 1.03 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.4404, allocations: 27.98 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.4406, allocations: 68.45 kB / 1.03 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.4408, allocations: 35.97 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4408, allocations: 0 / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004748/0.4413, allocations: 121.5 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.4413, allocations: 5.25 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4414, allocations: 4 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.4414, allocations: 8.125 kB / 1.03 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.4416, allocations: 19.98 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.4416, allocations: 3.984 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.4418, allocations: 19.86 kB / 1.03 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.4418, allocations: 4.047 kB / 1.03 GB, free: 10.4 MB / 0.6823 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 0.0001239/0.4419, allocations: 121.8 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.4419, allocations: 7.984 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004949/0.4425, allocations: 118 kB / 1.031 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.4425, allocations: 4 kB / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4425, allocations: 0 / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.4425, allocations: 0 / 1.031 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000743/0.4433, allocations: 374.7 kB / 1.031 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.4433, allocations: 0 / 1.031 GB, free: 9.723 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.4434, allocations: 15.98 kB / 1.031 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.4434, allocations: 0 / 1.031 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.4435, allocations: 4.188 kB / 1.031 GB, free: 9.703 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4435, allocations: 0 / 1.031 GB, free: 9.703 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.4435, allocations: 11.97 kB / 1.031 GB, free: 9.691 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000483/0.444, allocations: 212.3 kB / 1.031 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.4441, allocations: 85.02 kB / 1.031 GB, free: 9.367 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.4441, allocations: 4 kB / 1.031 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.4443, allocations: 15.98 kB / 1.031 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.4443, allocations: 7.938 kB / 1.031 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.4444, allocations: 4 kB / 1.031 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.949e-05/0.4444, allocations: 83.28 kB / 1.031 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.4e-07/0.4444, allocations: 0 / 1.031 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003043/0.4447, allocations: 8 kB / 1.031 GB, free: 9.246 MB / 0.6823 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.0001451/0.4449, allocations: 107.2 kB / 1.031 GB, free: 9.129 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004376/0.4453, allocations: 75.89 kB / 1.032 GB, free: 9.055 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4454, allocations: 4.25 kB / 1.032 GB, free: 9.051 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.4456, allocations: 43.91 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.4458, allocations: 4 kB / 1.032 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004344/0.4463, allocations: 152.8 kB / 1.032 GB, free: 8.82 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.4466, allocations: 0.6848 MB / 1.032 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 5.288e-05/0.4466, allocations: 8.172 kB / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.538e-05/0.4467, allocations: 11.44 kB / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of SimCode: time 9.71e-07/0.4467, allocations: 0 / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of Templates: time 0.003538/0.4503, allocations: 0.5784 MB / 1.033 GB, free: 7.516 MB / 0.6823 GB