Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/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_master_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.949/4.949, allocations: 0.5623 GB / 0.5769 GB, free: 3.363 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002535/0.002534, allocations: 359.8 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.143/4.143, allocations: 410.7 MB / 1.112 GB, free: 5.988 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001773/0.001772, allocations: 172.5 kB / 1.225 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001097, allocations: 12 kB / 1.348 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5997/0.6008, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0007143/0.6016, allocations: 402.4 kB / 1.461 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.6028, allocations: 1.024 MB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.934e-05/0.6028, allocations: 3.938 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.381e-05/0.6028, allocations: 3.984 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.031e-05/0.6029, allocations: 8.953 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.6031, allocations: 27.92 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 6.856e-05/0.6032, allocations: 52.61 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.987e-05/0.6033, allocations: 8.969 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 6.18e-05/0.6034, allocations: 19.92 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.916e-05/0.6035, allocations: 23.91 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.6035, allocations: 0.6562 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.881e-05/0.6036, allocations: 13.41 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.943e-05/0.6036, allocations: 19.91 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.627e-05/0.6036, allocations: 25.7 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 8.449e-05/0.6037, allocations: 35.92 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.31e-06/0.6037, allocations: 0.5 kB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.968e-06/0.6037, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.6038, allocations: 0.75 kB / 1.462 GB, free: 282.7 MB / 0.8542 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.0004734/0.6042, allocations: 368 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.6043, allocations: 15.62 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.606e-05/0.6043, allocations: 1.062 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.656e-05/0.6044, allocations: 180 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.6045, allocations: 1.062 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.6045, allocations: 7.938 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.6047, allocations: 79.5 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.53e-06/0.6047, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.6047, allocations: 0 / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.046e-06/0.6048, allocations: 0.75 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.605, allocations: 59.23 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004063/0.6054, allocations: 273.9 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.6056, allocations: 72.92 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.6057, allocations: 30.53 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.6058, allocations: 4 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.606, allocations: 77.22 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 2.597e-06/0.606, allocations: 0.5 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0004675/0.6065, allocations: 153.4 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.6066, allocations: 51.41 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.525e-05/0.6066, allocations: 110.4 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.6067, allocations: 30.23 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.387e-05/0.6067, allocations: 88.8 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.6067, allocations: 19.8 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.957e-06/0.6068, allocations: 1.031 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.6068, allocations: 318.8 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.6069, allocations: 34.12 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.6071, allocations: 65.92 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.6072, allocations: 40.03 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.957e-06/0.6073, allocations: 0.5938 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003455/0.6076, allocations: 128.6 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.6076, allocations: 4 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.6077, allocations: 1.25 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.6077, allocations: 4 kB / 1.464 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.6078, allocations: 25.17 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.326e-06/0.6079, allocations: 0 / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.472e-05/0.608, allocations: 16.44 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.608, allocations: 4.531 kB / 1.465 GB, free: 280.3 MB / 0.8542 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 7.94e-05/0.6081, allocations: 127.8 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.6081, allocations: 7.891 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003315/0.6084, allocations: 124.5 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.573e-06/0.6085, allocations: 0 / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6085, allocations: 0 / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.133e-06/0.6085, allocations: 4 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.609, allocations: 365.3 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.08e-06/0.609, allocations: 4.5 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.514e-05/0.6091, allocations: 16.48 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.47e-06/0.6091, allocations: 1.438 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.6091, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.6091, allocations: 0.8438 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.84e-06/0.6092, allocations: 3.953 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003137/0.6095, allocations: 214.6 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.128e-05/0.6095, allocations: 77.67 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.6095, allocations: 0.75 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.6097, allocations: 13.02 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.6097, allocations: 14.36 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.6098, allocations: 11.89 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.397e-05/0.6098, allocations: 83.22 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.3e-07/0.6098, allocations: 0.9688 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000335/0.6102, allocations: 16 kB / 1.466 GB, free: 279.1 MB / 0.8542 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.0001353/0.6103, allocations: 104.2 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003105/0.6106, allocations: 83.17 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.709e-06/0.6107, allocations: 0 / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.6108, allocations: 37.53 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.6112, allocations: 11.02 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.6115, allocations: 146.3 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.6117, allocations: 0.6933 MB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.027e-05/0.6117, allocations: 4.719 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.748e-05/0.6118, allocations: 8.5 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of SimCode: time 1.668e-06/0.6118, allocations: 0 / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of Templates: time 0.003321/0.6151, allocations: 0.7196 MB / 1.467 GB, free: 277.3 MB / 0.8542 GB