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 5.172/5.172, allocations: 0.5623 GB / 0.5776 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.003727/0.003727, allocations: 359.6 kB / 0.6447 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.629/4.629, allocations: 410.7 MB / 1.113 GB, free: 5.938 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.001949/0.001949, allocations: 187.1 kB / 1.226 GB, free: 6.129 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004959, allocations: 12 kB / 1.349 GB, free: 8.262 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.846/0.8466, 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.0008995/0.8475, allocations: 404.3 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.849, allocations: 1.026 MB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.805e-05/0.8491, allocations: 3.938 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.576e-05/0.8491, allocations: 0.5625 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.353e-05/0.8492, allocations: 12.92 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.8494, allocations: 27.91 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.722e-05/0.8495, allocations: 43.86 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.256e-05/0.8496, allocations: 22.41 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 6.497e-05/0.8497, allocations: 15.94 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.617e-05/0.8498, allocations: 23.91 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.8498, allocations: 0 / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.912e-05/0.8499, allocations: 11.98 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.067e-05/0.8499, allocations: 16.81 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.958e-05/0.85, allocations: 33.7 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 9.831e-05/0.8501, allocations: 33.62 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.8501, allocations: 4 kB / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8501, allocations: 0 / 1.463 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.8501, allocations: 0 / 1.463 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.0006102/0.8507, allocations: 376.2 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.8508, allocations: 11.62 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.8508, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.007e-05/0.8509, allocations: 171.7 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.851, allocations: 0 / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.851, allocations: 8.688 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.8513, allocations: 70.84 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.8513, allocations: 1.781 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.8513, allocations: 4 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.8513, allocations: 0 / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.8516, allocations: 57.58 kB / 1.464 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.8521, allocations: 278.5 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.8524, allocations: 75.33 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001635/0.8526, allocations: 29.62 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.8526, allocations: 9.516 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.8529, allocations: 72.27 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=7): time 2.755e-06/0.8529, allocations: 0.9375 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7): time 0.0006276/0.8536, allocations: 148.5 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.8536, allocations: 56.52 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.8537, allocations: 109.8 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.8537, allocations: 25.7 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.871e-05/0.8538, allocations: 92.72 kB / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.8538, allocations: 16.91 kB / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-06/0.8538, allocations: 0 / 1.465 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.273e-05/0.8539, allocations: 319.7 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.8541, allocations: 30.17 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.8543, allocations: 69.17 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.8545, allocations: 44.14 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.8545, allocations: 0 / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004304/0.8549, allocations: 127.5 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.8549, allocations: 4 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.855, allocations: 5.531 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.855, allocations: 4 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.8552, allocations: 23.92 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.8552, allocations: 4.797 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.8553, allocations: 8.969 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.8554, allocations: 11.95 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 8.919e-05/0.8555, allocations: 122.8 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.927e-05/0.8555, allocations: 5.703 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004366/0.8559, allocations: 120.4 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.856, allocations: 0.5 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.856, allocations: 0 / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-05/0.856, allocations: 81.73 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.8561, allocations: 5.359 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.8562, allocations: 11.98 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.702e-05/0.8562, allocations: 8.516 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004847/0.8567, allocations: 196.7 kB / 1.466 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004414/0.8572, allocations: 286.6 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001765/0.8574, allocations: 35.97 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.703e-05/0.8574, allocations: 87.83 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of Backend: time 7.41e-07/0.8574, allocations: 0.5625 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006093/0.8581, allocations: 134.5 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0004793/0.8586, allocations: 0.5903 MB / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.003943/0.8625, allocations: 0.8155 MB / 1.468 GB, free: 277.7 MB / 0.8542 GB