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 2.738/2.738, allocations: 287.9 MB / 302.9 MB, free: 8.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002493/0.002493, allocations: 186.3 kB / 371.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.4 MB / 0.6301 GB, free: 10.38 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001028/0.001027, allocations: 92.23 kB / 0.7434 GB, free: 6.398 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004604/0.0004606, allocations: 11.03 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.201, allocations: 115.3 MB / 0.9788 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0006922/0.2017, allocations: 389.8 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00113/0.2029, allocations: 1.029 MB / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.426e-05/0.203, allocations: 3.938 kB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.203, allocations: 0 / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.559e-05/0.203, allocations: 7.969 kB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.2033, allocations: 31.84 kB / 0.9802 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.16e-05/0.2033, allocations: 31.97 kB / 0.9802 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.228e-05/0.2034, allocations: 11.98 kB / 0.9802 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.565e-05/0.2035, allocations: 11.94 kB / 0.9802 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.834e-05/0.2036, allocations: 23.91 kB / 0.9803 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.2036, allocations: 0 / 0.9803 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.636e-05/0.2036, allocations: 15.97 kB / 0.9803 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.686e-05/0.2037, allocations: 11.94 kB / 0.9803 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.601e-05/0.2037, allocations: 29.7 kB / 0.9803 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.563e-05/0.2038, allocations: 31.92 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.879e-06/0.2038, allocations: 4 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.841e-06/0.2038, allocations: 3.938 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.355e-06/0.2038, allocations: 0 / 0.9803 GB, free: 26.54 MB / 0.6198 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.0004596/0.2043, allocations: 363.5 kB / 0.9807 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.2044, allocations: 16.02 kB / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.2044, allocations: 7.906 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.974e-05/0.2046, allocations: 179 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.2046, allocations: 4 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.2046, allocations: 4 kB / 0.9809 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.2049, allocations: 61.67 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.205, allocations: 0 / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.205, allocations: 3.984 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.921e-06/0.205, allocations: 4 kB / 0.981 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.2054, allocations: 51.91 kB / 0.981 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005635/0.206, allocations: 276.8 kB / 0.9813 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.2062, allocations: 66.55 kB / 0.9813 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.2063, allocations: 0 / 0.9813 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.2065, allocations: 83.44 kB / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 3.443e-06/0.2065, allocations: 7.922 kB / 0.9814 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0004692/0.207, allocations: 137.5 kB / 0.9816 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.207, allocations: 55.41 kB / 0.9816 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.517e-05/0.2071, allocations: 109.8 kB / 0.9817 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.2071, allocations: 25.7 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.2072, allocations: 84.14 kB / 0.9818 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.2072, allocations: 15.88 kB / 0.9818 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.908e-06/0.2072, allocations: 4 kB / 0.9818 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.191e-05/0.2073, allocations: 318.8 kB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.2074, allocations: 27.98 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.2075, allocations: 59.34 kB / 0.9822 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.2077, allocations: 31.98 kB / 0.9823 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.82e-06/0.2077, allocations: 0 / 0.9823 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003204/0.208, allocations: 121.5 kB / 0.9824 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.2081, allocations: 4 kB / 0.9824 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.564e-06/0.2081, allocations: 4 kB / 0.9824 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.2081, allocations: 0 / 0.9824 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.2082, allocations: 23.92 kB / 0.9824 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.947e-06/0.2083, allocations: 4 kB / 0.9824 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.595e-05/0.2084, allocations: 11.92 kB / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.2084, allocations: 7.953 kB / 0.9824 GB, free: 24.18 MB / 0.6198 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 7.328e-05/0.2085, allocations: 117.8 kB / 0.9825 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.2085, allocations: 4 kB / 0.9825 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.2088, allocations: 114 kB / 0.9826 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.934e-06/0.2088, allocations: 4.5 kB / 0.9827 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.26e-06/0.2089, allocations: 4 kB / 0.9827 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.396e-06/0.2089, allocations: 0 / 0.9827 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004669/0.2093, allocations: 366.4 kB / 0.983 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.15e-06/0.2094, allocations: 0 / 0.983 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.802e-05/0.2095, allocations: 12 kB / 0.983 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.963e-06/0.2095, allocations: 0 / 0.983 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.2095, allocations: 7.984 kB / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.631e-06/0.2095, allocations: 0 / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.471e-06/0.2095, allocations: 3.938 kB / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.2098, allocations: 199.5 kB / 0.9832 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.476e-05/0.2099, allocations: 89 kB / 0.9833 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.2099, allocations: 0 / 0.9833 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.21, allocations: 12 kB / 0.9833 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.2101, allocations: 7.984 kB / 0.9833 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.2101, allocations: 0 / 0.9833 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.587e-05/0.2102, allocations: 95.22 kB / 0.9834 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.11e-07/0.2102, allocations: 0 / 0.9834 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003302/0.2105, allocations: 15.94 kB / 0.9834 GB, free: 23.04 MB / 0.6198 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001367/0.2107, allocations: 95.25 kB / 0.9835 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000298/0.211, allocations: 79.89 kB / 0.9836 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.939e-06/0.211, allocations: 0 / 0.9836 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2111, allocations: 39.91 kB / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.2114, allocations: 8 kB / 0.9836 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003247/0.2117, allocations: 144.8 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.2119, allocations: 0.6859 MB / 0.9844 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.895e-05/0.2119, allocations: 4.172 kB / 0.9845 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.8e-05/0.2119, allocations: 11.44 kB / 0.9845 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of SimCode: time 1.615e-06/0.212, allocations: 0 / 0.9845 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of Templates: time 0.003214/0.2152, allocations: 0.6815 MB / 0.9851 GB, free: 21.25 MB / 0.6198 GB