Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.388/5.388, allocations: 0.5623 GB / 0.5776 GB, free: 3.379 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.003891/0.00389, allocations: 365.9 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.4/4.4, allocations: 410.7 MB / 1.113 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001873/0.001872, allocations: 184.5 kB / 1.226 GB, free: 35.99 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0005437/0.0005439, allocations: 18.25 kB / 1.349 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2697, allocations: 115.3 MB / 1.461 GB, free: 6.617 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0008722/0.2706, allocations: 393.7 kB / 1.462 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.272, allocations: 1.025 MB / 1.463 GB, free: 5.191 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.81e-05/0.2721, allocations: 7.938 kB / 1.463 GB, free: 5.184 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.943e-05/0.2721, allocations: 0 / 1.463 GB, free: 5.184 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.266e-05/0.2722, allocations: 3.938 kB / 1.463 GB, free: 5.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002433/0.2724, allocations: 31.91 kB / 1.463 GB, free: 5.148 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.961e-05/0.2725, allocations: 43.84 kB / 1.463 GB, free: 5.105 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.646e-05/0.2726, allocations: 7.984 kB / 1.463 GB, free: 5.098 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.46e-05/0.2727, allocations: 15.94 kB / 1.463 GB, free: 5.082 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.781e-05/0.2728, allocations: 19.91 kB / 1.463 GB, free: 5.062 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.2728, allocations: 4 kB / 1.463 GB, free: 5.059 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.985e-05/0.2729, allocations: 15.98 kB / 1.463 GB, free: 5.043 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.811e-05/0.2729, allocations: 7.922 kB / 1.463 GB, free: 5.035 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.273, allocations: 37.64 kB / 1.463 GB, free: 4.992 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.936e-05/0.2731, allocations: 31.92 kB / 1.463 GB, free: 4.961 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.2731, allocations: 4 kB / 1.463 GB, free: 4.957 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.126e-06/0.2731, allocations: 4 kB / 1.463 GB, free: 4.953 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.2731, allocations: 0 / 1.463 GB, free: 4.953 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006043/0.2737, allocations: 363.5 kB / 1.463 GB, free: 4.551 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.2738, allocations: 12.03 kB / 1.463 GB, free: 4.539 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.546e-05/0.2738, allocations: 3.906 kB / 1.463 GB, free: 4.535 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.568e-05/0.2739, allocations: 171 kB / 1.463 GB, free: 4.328 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.2739, allocations: 0 / 1.463 GB, free: 4.328 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.071e-05/0.274, allocations: 4 kB / 1.463 GB, free: 4.324 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.2742, allocations: 69.66 kB / 1.464 GB, free: 4.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2743, allocations: 0 / 1.464 GB, free: 4.25 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.2743, allocations: 3.984 kB / 1.464 GB, free: 4.246 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.2743, allocations: 4 kB / 1.464 GB, free: 4.242 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.2746, allocations: 51.91 kB / 1.464 GB, free: 4.191 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004837/0.2751, allocations: 284.8 kB / 1.464 GB, free: 3.863 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.2754, allocations: 58.55 kB / 1.464 GB, free: 3.797 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.2755, allocations: 36.95 kB / 1.464 GB, free: 3.758 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.2756, allocations: 4 kB / 1.464 GB, free: 3.754 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002826/0.2759, allocations: 79.33 kB / 1.464 GB, free: 3.664 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.974e-06/0.2759, allocations: 0 / 1.464 GB, free: 3.664 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006012/0.2765, allocations: 141.5 kB / 1.464 GB, free: 3.52 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/0.2765, allocations: 51.41 kB / 1.464 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.99e-05/0.2766, allocations: 109.8 kB / 1.464 GB, free: 3.34 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.2766, allocations: 29.64 kB / 1.464 GB, free: 3.305 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.691e-05/0.2767, allocations: 88.12 kB / 1.464 GB, free: 3.215 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.155e-05/0.2767, allocations: 15.81 kB / 1.464 GB, free: 3.199 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.2767, allocations: 0 / 1.464 GB, free: 3.199 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.097e-05/0.2768, allocations: 318.8 kB / 1.465 GB, free: 2.879 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.277, allocations: 27.97 kB / 1.465 GB, free: 2.852 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2772, allocations: 59.34 kB / 1.465 GB, free: 2.781 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.2773, allocations: 35.97 kB / 1.465 GB, free: 2.746 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.2774, allocations: 3.938 kB / 1.465 GB, free: 2.742 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003989/0.2778, allocations: 117.5 kB / 1.465 GB, free: 2.621 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.2778, allocations: 8 kB / 1.465 GB, free: 2.613 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2778, allocations: 0 / 1.465 GB, free: 2.613 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2778, allocations: 0 / 1.465 GB, free: 2.613 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.278, allocations: 19.92 kB / 1.465 GB, free: 2.594 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.278, allocations: 8.094 kB / 1.465 GB, free: 2.586 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.2782, allocations: 19.92 kB / 1.465 GB, free: 2.566 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2782, allocations: 3.953 kB / 1.465 GB, free: 2.562 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.183e-05/0.2783, allocations: 117.7 kB / 1.465 GB, free: 2.441 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.2783, allocations: 4 kB / 1.465 GB, free: 2.438 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000417/0.2787, allocations: 118 kB / 1.465 GB, free: 2.32 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.2787, allocations: 0 / 1.465 GB, free: 2.32 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2788, allocations: 0 / 1.465 GB, free: 2.32 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.583e-05/0.2788, allocations: 81.02 kB / 1.465 GB, free: 2.223 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.2788, allocations: 11.94 kB / 1.465 GB, free: 2.211 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.2789, allocations: 8 kB / 1.465 GB, free: 2.203 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.279, allocations: 7.984 kB / 1.465 GB, free: 2.195 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004491/0.2795, allocations: 193.5 kB / 1.466 GB, free: 2 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004348/0.2799, allocations: 282.8 kB / 1.466 GB, free: 1.707 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001721/0.2801, allocations: 39.97 kB / 1.466 GB, free: 1.668 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.873e-05/0.2801, allocations: 83.28 kB / 1.466 GB, free: 1.586 MB / 0.6042 GB Notification: Performance of Backend: time 7.42e-07/0.2802, allocations: 0 / 1.466 GB, free: 1.586 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006071/0.2808, allocations: 122.3 kB / 1.466 GB, free: 1.457 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0005754/0.2814, allocations: 0.5954 MB / 1.467 GB, free: 0.8203 MB / 0.6042 GB Notification: Performance of Templates: time 0.004174/0.2856, allocations: 0.7648 MB / 1.467 GB, free: 60 kB / 0.6042 GB