Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.121/5.121, allocations: 0.5623 GB / 0.5776 GB, free: 3.371 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.003408/0.003408, allocations: 358.4 kB / 0.6447 GB, free: 185.7 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.633/4.633, allocations: 410.7 MB / 1.113 GB, free: 6.125 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.001925/0.001925, allocations: 187.2 kB / 1.226 GB, free: 6.234 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0008029/0.0008033, allocations: 16 kB / 1.349 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8391/0.8399, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008935/0.8409, allocations: 398.8 kB / 1.462 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.8423, allocations: 1.019 MB / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.143e-05/0.8423, allocations: 7.938 kB / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.8424, allocations: 4.906 kB / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.535e-05/0.8424, allocations: 0 / 1.463 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002473/0.8427, allocations: 37.36 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 7.186e-05/0.8428, allocations: 39.86 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.316e-05/0.8429, allocations: 5.094 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 5.902e-05/0.843, allocations: 11.98 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 5.363e-05/0.843, allocations: 23.91 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.8431, allocations: 0.625 kB / 1.463 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.8431, allocations: 11.98 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.378e-05/0.8432, allocations: 10.44 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.8432, allocations: 33.69 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.8433, allocations: 27.94 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.8433, allocations: 3.938 kB / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8433, allocations: 0 / 1.463 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.8434, allocations: 4 kB / 1.463 GB, free: 282.8 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005125/0.8439, allocations: 355.1 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.8439, allocations: 11.62 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.844, allocations: 9.766 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.775e-05/0.8441, allocations: 174.9 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.8441, allocations: 4 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.8441, allocations: 4 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.8444, allocations: 63.23 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.8444, allocations: 1.562 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.8444, allocations: 4 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.8444, allocations: 4.797 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.8448, allocations: 48.39 kB / 1.464 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004816/0.8452, allocations: 280.8 kB / 1.464 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.8455, allocations: 48.19 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.8456, allocations: 33.95 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.8457, allocations: 0.7812 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.846, allocations: 78.8 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 2.836e-06/0.846, allocations: 2.469 kB / 1.464 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5): time 0.0005786/0.8466, allocations: 127.2 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.8466, allocations: 51.41 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.672e-05/0.8467, allocations: 119.3 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.8468, allocations: 25.7 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.735e-05/0.8468, allocations: 88.08 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.8468, allocations: 11.81 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-06/0.8468, allocations: 4.781 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.138e-05/0.8469, allocations: 319.4 kB / 1.465 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.8471, allocations: 25.83 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.8473, allocations: 57.5 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.8475, allocations: 33.7 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.8475, allocations: 0.75 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004077/0.8479, allocations: 112.3 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.8479, allocations: 4.75 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.848, allocations: 0 / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.848, allocations: 8.438 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.8482, allocations: 16.77 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.8482, allocations: 1.344 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.8483, allocations: 15.98 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.8483, allocations: 5.234 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.208e-05/0.8484, allocations: 117.8 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.8485, allocations: 8.562 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003979/0.8489, allocations: 100.3 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.8489, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.8489, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.071e-05/0.8489, allocations: 90.27 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.849, allocations: 3.953 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.8491, allocations: 10.2 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.8491, allocations: 4 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004344/0.8496, allocations: 187.7 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003994/0.85, allocations: 262.9 kB / 1.466 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001669/0.8502, allocations: 37.53 kB / 1.466 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.029e-05/0.8502, allocations: 79.28 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of Backend: time 6.81e-07/0.8502, allocations: 1.375 kB / 1.466 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006049/0.8508, allocations: 125.7 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0005058/0.8514, allocations: 0.5854 MB / 1.467 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.003696/0.8551, allocations: 0.7276 MB / 1.467 GB, free: 278.1 MB / 0.8542 GB