Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.357/2.357, allocations: 248.5 MB / 261.1 MB, free: 5.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 180.3 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.2 MB / 0.571 GB, free: 11.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 94.41 kB / 0.6754 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.384e-05/4.443e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2169, allocations: 106.2 MB / 0.8907 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8773/1.094, allocations: 131.4 MB / 1.019 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002697/1.095, allocations: 78 kB / 1.019 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003627/1.098, allocations: 0.8664 MB / 1.02 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.903e-06/1.098, allocations: 0 / 1.02 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.725e-06/1.098, allocations: 0 / 1.02 GB, free: 2.965 MB / 0.6355 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.0005824/1.099, allocations: 363 kB / 1.02 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.099, allocations: 8.031 kB / 1.02 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.536e-05/1.099, allocations: 34.38 kB / 1.02 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/1.099, allocations: 12.47 kB / 1.02 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/1.099, allocations: 171 kB / 1.021 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/1.099, allocations: 0 / 1.021 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/1.099, allocations: 11.73 kB / 1.021 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001514/1.1, allocations: 54.38 kB / 1.021 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/1.1, allocations: 0 / 1.021 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/1.1, allocations: 3.938 kB / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/1.1, allocations: 0 / 1.021 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.137e-05/1.1, allocations: 18.5 kB / 1.021 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004722/1.1, allocations: 275.7 kB / 1.021 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/1.1, allocations: 49.88 kB / 1.021 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.846e-05/1.1, allocations: 18.72 kB / 1.021 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/1.1, allocations: 5.312 kB / 1.021 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001512/1.101, allocations: 57.28 kB / 1.021 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.374e-06/1.101, allocations: 3.938 kB / 1.021 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002584/1.101, allocations: 83.09 kB / 1.021 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/1.101, allocations: 55.41 kB / 1.021 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/1.101, allocations: 96.56 kB / 1.021 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/1.101, allocations: 25.7 kB / 1.021 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/1.101, allocations: 83.27 kB / 1.021 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/1.101, allocations: 22.98 kB / 1.021 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/1.101, allocations: 0 / 1.021 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001413/1.101, allocations: 313.9 kB / 1.022 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.426e-05/1.101, allocations: 11.19 kB / 1.022 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.009e-05/1.101, allocations: 42.06 kB / 1.022 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.709e-05/1.102, allocations: 19.23 kB / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.102, allocations: 0 / 1.022 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001844/1.102, allocations: 76.34 kB / 1.022 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/1.102, allocations: 8 kB / 1.022 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.102, allocations: 96 / 1.022 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/1.102, allocations: 4 kB / 1.022 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/1.102, allocations: 15.98 kB / 1.022 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/1.102, allocations: 8.266 kB / 1.022 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/1.102, allocations: 11.92 kB / 1.022 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/1.102, allocations: 8 kB / 1.022 GB, free: 0.9141 MB / 0.6355 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 () * 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 9.972e-05/1.102, allocations: 109.1 kB / 1.022 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/1.102, allocations: 7.938 kB / 1.022 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/1.103, allocations: 80.67 kB / 1.022 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/1.103, allocations: 0 / 1.022 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.103, allocations: 0 / 1.022 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/1.103, allocations: 3.953 kB / 1.022 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/1.103, allocations: 337.9 kB / 1.022 GB, free: 364 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.103, allocations: 0 / 1.022 GB, free: 364 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/1.103, allocations: 11.98 kB / 1.022 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/1.103, allocations: 4.047 kB / 1.022 GB, free: 348 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/1.103, allocations: 3.984 kB / 1.022 GB, free: 344 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/1.103, allocations: 7.953 kB / 1.022 GB, free: 336 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/1.103, allocations: 0 / 1.022 GB, free: 336 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/1.104, allocations: 169.2 kB / 1.023 GB, free: 164 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/1.104, allocations: 85 kB / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/1.104, allocations: 4 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/1.104, allocations: 19.36 kB / 1.023 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/1.104, allocations: 3.953 kB / 1.023 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/1.104, allocations: 4 kB / 1.023 GB, free: 32 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.941e-05/1.104, allocations: 86.78 kB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.71e-07/1.104, allocations: 0 / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002951/1.104, allocations: 11.98 kB / 1.023 GB, free: 15.94 MB / 0.6511 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 () * 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.0005496/1.105, allocations: 0.7007 MB / 1.023 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001639/1.105, allocations: 38.61 kB / 1.023 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.105, allocations: 3.938 kB / 1.023 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.42e-05/1.105, allocations: 18.38 kB / 1.023 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/1.105, allocations: 7.953 kB / 1.023 GB, free: 15.18 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004971/1.106, allocations: 131.2 kB / 1.024 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/1.106, allocations: 0.6848 MB / 1.024 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.948e-05/1.106, allocations: 4.188 kB / 1.024 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/1.106, allocations: 13.12 kB / 1.024 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of SimCode: time 9.42e-07/1.106, allocations: 4 kB / 1.024 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/1.124, allocations: 1.322 MB / 1.026 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/1.124, allocations: 155.5 kB / 1.026 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.323/3.447, allocations: 0 / 1.026 GB, free: 12.86 MB / 0.6511 GB