Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.35/2.35, allocations: 251.1 MB / 266.1 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001507/0.001507, allocations: 177.4 kB / 325.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.418/2.418, allocations: 205.4 MB / 0.5766 GB, free: 21.16 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 100.5 kB / 0.6811 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004755, allocations: 14.66 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2161, allocations: 106.3 MB / 0.8989 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001628/0.2178, allocations: 1.092 MB / 0.9 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000687/0.2185, allocations: 213.3 kB / 0.9002 GB, free: 64.66 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.675e-05/0.2186, allocations: 7.938 kB / 0.9002 GB, free: 64.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.218e-05/0.2186, allocations: 3.938 kB / 0.9002 GB, free: 64.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.807e-05/0.2187, allocations: 7.984 kB / 0.9002 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.2189, allocations: 11.98 kB / 0.9002 GB, free: 64.63 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.156e-05/0.219, allocations: 23.97 kB / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.537e-05/0.2191, allocations: 7.938 kB / 0.9002 GB, free: 64.6 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.031e-05/0.2192, allocations: 23.91 kB / 0.9002 GB, free: 64.57 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.647e-05/0.2193, allocations: 19.92 kB / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.2193, allocations: 4 kB / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.604e-05/0.2194, allocations: 0 / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.2194, allocations: 7.984 kB / 0.9003 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.2194, allocations: 33.64 kB / 0.9003 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.484e-05/0.2195, allocations: 31.94 kB / 0.9003 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.2195, allocations: 0 / 0.9003 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.724e-06/0.2196, allocations: 0 / 0.9003 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.2196, allocations: 0 / 0.9003 GB, free: 64.47 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.0005862/0.2202, allocations: 359.3 kB / 0.9007 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.2202, allocations: 8.031 kB / 0.9007 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.2203, allocations: 11.84 kB / 0.9007 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.509e-05/0.2204, allocations: 171 kB / 0.9009 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.2204, allocations: 4 kB / 0.9009 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.2204, allocations: 0 / 0.9009 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.2207, allocations: 73.66 kB / 0.9009 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2207, allocations: 3.938 kB / 0.9009 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.2207, allocations: 0 / 0.9009 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.2207, allocations: 0 / 0.9009 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003362/0.2211, allocations: 55.95 kB / 0.901 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004121/0.2215, allocations: 280.8 kB / 0.9013 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.2217, allocations: 54.56 kB / 0.9013 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.2218, allocations: 7.984 kB / 0.9013 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.2221, allocations: 75.45 kB / 0.9014 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.354e-06/0.2221, allocations: 0 / 0.9014 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006468/0.2227, allocations: 133.6 kB / 0.9015 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.2228, allocations: 63.36 kB / 0.9016 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.993e-05/0.2229, allocations: 106 kB / 0.9017 GB, free: 62.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.2229, allocations: 33.7 kB / 0.9017 GB, free: 62.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.397e-05/0.223, allocations: 88.05 kB / 0.9018 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.223, allocations: 23.89 kB / 0.9018 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/0.223, allocations: 0 / 0.9018 GB, free: 62.75 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.851e-05/0.2231, allocations: 318.8 kB / 0.9021 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.2232, allocations: 31.97 kB / 0.9022 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.2234, allocations: 51.42 kB / 0.9022 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001639/0.2236, allocations: 31.97 kB / 0.9022 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.2236, allocations: 0 / 0.9022 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003821/0.224, allocations: 113.8 kB / 0.9023 GB, free: 62.19 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.224, allocations: 8 kB / 0.9023 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2241, allocations: 0 / 0.9023 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2241, allocations: 0 / 0.9023 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.2242, allocations: 28.02 kB / 0.9024 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.2243, allocations: 4 kB / 0.9024 GB, free: 62.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2244, allocations: 11.94 kB / 0.9024 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2244, allocations: 4 kB / 0.9024 GB, free: 62.13 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 7.693e-05/0.2245, allocations: 113.8 kB / 0.9025 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.2245, allocations: 7.906 kB / 0.9025 GB, free: 62 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/0.225, allocations: 121.9 kB / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.225, allocations: 0 / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.225, allocations: 3.984 kB / 0.9026 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.225, allocations: 4.031 kB / 0.9026 GB, free: 61.87 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005637/0.2256, allocations: 362.5 kB / 0.903 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2256, allocations: 0 / 0.903 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.2257, allocations: 11.94 kB / 0.903 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.2257, allocations: 0 / 0.903 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.2258, allocations: 7.984 kB / 0.903 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.2258, allocations: 0 / 0.903 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2258, allocations: 7.953 kB / 0.903 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.2262, allocations: 192.4 kB / 0.9032 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.741e-05/0.2262, allocations: 85.02 kB / 0.9033 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/0.2263, allocations: 7.984 kB / 0.9033 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.2264, allocations: 12 kB / 0.9033 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.2265, allocations: 11.94 kB / 0.9033 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2265, allocations: 192 / 0.9033 GB, free: 61.1 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.664e-05/0.2266, allocations: 91.27 kB / 0.9034 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2266, allocations: 0 / 0.9034 GB, free: 61.01 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003131/0.2269, allocations: 15.94 kB / 0.9034 GB, free: 60.99 MB / 0.6042 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.0001142/0.227, allocations: 103.1 kB / 0.9035 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000425/0.2275, allocations: 71.95 kB / 0.9036 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2275, allocations: 0 / 0.9036 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.2277, allocations: 44.09 kB / 0.9036 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.2279, allocations: 8 kB / 0.9036 GB, free: 60.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.2283, allocations: 132.7 kB / 0.9037 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.2285, allocations: 0.6965 MB / 0.9044 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.325e-05/0.2285, allocations: 192 / 0.9044 GB, free: 59.88 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.531e-05/0.2286, allocations: 11.44 kB / 0.9044 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of SimCode: time 6.72e-07/0.2286, allocations: 0 / 0.9044 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of Templates: time 0.003227/0.2318, allocations: 0.5349 MB / 0.905 GB, free: 59.34 MB / 0.6042 GB