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.506/2.506, allocations: 251.1 MB / 266.1 MB, free: 11.61 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.002141/0.002141, allocations: 184.4 kB / 325.6 MB, free: 2.816 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.52/2.52, allocations: 205.4 MB / 0.5766 GB, free: 21.1 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.001076/0.001076, allocations: 96.61 kB / 0.6811 GB, free: 14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005297, allocations: 12.03 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2457, allocations: 106.2 MB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001591/0.2474, allocations: 1.104 MB / 0.9 GB, free: 64.84 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005211/0.2479, allocations: 226.1 kB / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.574e-05/0.248, allocations: 0 / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.105e-05/0.248, allocations: 3.984 kB / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.906e-05/0.2481, allocations: 7.984 kB / 0.9002 GB, free: 64.6 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.2483, allocations: 15.92 kB / 0.9002 GB, free: 64.59 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.553e-05/0.2484, allocations: 31.95 kB / 0.9002 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2485, allocations: 11.94 kB / 0.9002 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.673e-05/0.2486, allocations: 15.92 kB / 0.9003 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.854e-05/0.2487, allocations: 23.92 kB / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.2487, allocations: 0 / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.2487, allocations: 4 kB / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.2487, allocations: 3.984 kB / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.2488, allocations: 37.64 kB / 0.9003 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.266e-05/0.2489, allocations: 35.86 kB / 0.9004 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2489, allocations: 0 / 0.9004 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2489, allocations: 0 / 0.9004 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.2489, allocations: 3.938 kB / 0.9004 GB, free: 64.41 MB / 0.6042 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.0005697/0.2495, allocations: 363.2 kB / 0.9007 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2495, allocations: 12.03 kB / 0.9007 GB, free: 64 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.2496, allocations: 3.906 kB / 0.9007 GB, free: 64 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.14e-05/0.2497, allocations: 179 kB / 0.9009 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.2497, allocations: 0 / 0.9009 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.2497, allocations: 4 kB / 0.9009 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002617/0.25, allocations: 77.64 kB / 0.901 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.25, allocations: 0 / 0.901 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.25, allocations: 0 / 0.901 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2501, allocations: 0 / 0.901 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.2504, allocations: 59.89 kB / 0.901 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004017/0.2508, allocations: 284.7 kB / 0.9013 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002295/0.251, allocations: 58.55 kB / 0.9014 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2511, allocations: 4 kB / 0.9014 GB, free: 63.24 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.2513, allocations: 87.44 kB / 0.9014 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.2514, allocations: 0 / 0.9014 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=7): time 0.0006015/0.252, allocations: 141.6 kB / 0.9016 GB, free: 63 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.252, allocations: 55.36 kB / 0.9016 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.204e-05/0.2521, allocations: 105.8 kB / 0.9017 GB, free: 62.82 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.2521, allocations: 25.7 kB / 0.9018 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.2522, allocations: 108 kB / 0.9019 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.2522, allocations: 7.812 kB / 0.9019 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.2522, allocations: 4 kB / 0.9019 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.744e-05/0.2523, allocations: 314.8 kB / 0.9022 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002411/0.2526, allocations: 31.97 kB / 0.9022 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.2529, allocations: 68.2 kB / 0.9023 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.2531, allocations: 35.98 kB / 0.9023 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.2532, allocations: 4 kB / 0.9023 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000548/0.2537, allocations: 125.4 kB / 0.9024 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.2538, allocations: 4 kB / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.2538, allocations: 0 / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.2538, allocations: 12.06 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.2541, allocations: 19.98 kB / 0.9025 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.2541, allocations: 0 / 0.9025 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.2543, allocations: 15.94 kB / 0.9025 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.2543, allocations: 8.188 kB / 0.9025 GB, free: 62.01 MB / 0.6042 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 9.028e-05/0.2544, allocations: 117.8 kB / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.801e-05/0.2545, allocations: 7.938 kB / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.2549, allocations: 114 kB / 0.9027 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2549, allocations: 0 / 0.9027 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2549, allocations: 3.984 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.2549, allocations: 4 kB / 0.9027 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006014/0.2556, allocations: 378.3 kB / 0.9031 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2556, allocations: 0 / 0.9031 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.2557, allocations: 15.98 kB / 0.9031 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.2557, allocations: 0 / 0.9031 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.2557, allocations: 4 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.2558, allocations: 256 / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.2558, allocations: 7.953 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/0.2562, allocations: 211.4 kB / 0.9033 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.859e-05/0.2562, allocations: 81.02 kB / 0.9034 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.2563, allocations: 0 / 0.9034 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.2565, allocations: 15.98 kB / 0.9034 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.2565, allocations: 7.953 kB / 0.9034 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.2566, allocations: 7.984 kB / 0.9034 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.607e-05/0.2566, allocations: 79.28 kB / 0.9035 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.7e-07/0.2566, allocations: 0 / 0.9035 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003288/0.2569, allocations: 16 kB / 0.9035 GB, free: 60.85 MB / 0.6042 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.0001092/0.2571, allocations: 95.25 kB / 0.9036 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003918/0.2575, allocations: 91.89 kB / 0.9037 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.2575, allocations: 4.25 kB / 0.9037 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.2577, allocations: 35.92 kB / 0.9037 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.2579, allocations: 11.98 kB / 0.9037 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003788/0.2583, allocations: 152.8 kB / 0.9039 GB, free: 60.43 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.2585, allocations: 0.6848 MB / 0.9045 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.198e-05/0.2585, allocations: 4.188 kB / 0.9045 GB, free: 59.71 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.2586, allocations: 11.44 kB / 0.9046 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of SimCode: time 6.21e-07/0.2586, allocations: 0 / 0.9046 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of Templates: time 0.003203/0.2618, allocations: 0.578 MB / 0.9051 GB, free: 59.13 MB / 0.6042 GB