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.325/2.325, allocations: 248.7 MB / 256.2 MB, free: 7.043 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.001457/0.001457, allocations: 185.1 kB / 315.4 MB, free: 3.992 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.3 MB / 0.5662 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 86.52 kB / 0.6704 GB, free: 5.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.538e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1976, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8912/1.089, allocations: 131.7 MB / 1.013 GB, free: 7.145 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/1.089, allocations: 73.44 kB / 1.013 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00349/1.093, allocations: 0.8773 MB / 1.014 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.673e-06/1.093, allocations: 0 / 1.014 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.742e-06/1.093, allocations: 0 / 1.014 GB, free: 6.309 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.0005969/1.093, allocations: 357.5 kB / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/1.093, allocations: 8.031 kB / 1.014 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/1.093, allocations: 7.906 kB / 1.014 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/1.094, allocations: 164.7 kB / 1.014 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/1.094, allocations: 3.984 kB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/1.094, allocations: 4 kB / 1.014 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001092/1.094, allocations: 23.19 kB / 1.014 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/1.094, allocations: 45.11 kB / 1.014 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/1.094, allocations: 0 / 1.014 GB, free: 5.633 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/1.094, allocations: 4 kB / 1.014 GB, free: 5.629 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/1.094, allocations: 4 kB / 1.014 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004547/1.094, allocations: 252.3 kB / 1.014 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/1.095, allocations: 42.14 kB / 1.014 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.97e-05/1.095, allocations: 16.55 kB / 1.015 GB, free: 5.297 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/1.095, allocations: 3.938 kB / 1.015 GB, free: 5.293 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/1.095, allocations: 69.77 kB / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.804e-06/1.095, allocations: 0 / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002396/1.095, allocations: 72.91 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.738e-05/1.095, allocations: 55.41 kB / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.703e-05/1.095, allocations: 92.81 kB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/1.095, allocations: 25.7 kB / 1.015 GB, free: 4.965 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/1.095, allocations: 91.88 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.33e-05/1.095, allocations: 11.81 kB / 1.015 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.771e-06/1.095, allocations: 0 / 1.015 GB, free: 4.863 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001431/1.096, allocations: 322 kB / 1.015 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.359e-05/1.096, allocations: 11.75 kB / 1.015 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.205e-05/1.096, allocations: 35.05 kB / 1.015 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.295e-05/1.096, allocations: 15.38 kB / 1.015 GB, free: 4.48 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.096, allocations: 0 / 1.015 GB, free: 4.48 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001756/1.096, allocations: 75.28 kB / 1.015 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/1.096, allocations: 7.984 kB / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/1.096, allocations: 0 / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/1.096, allocations: 4 kB / 1.015 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/1.096, allocations: 15.98 kB / 1.015 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/1.096, allocations: 3.938 kB / 1.015 GB, free: 4.379 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/1.096, allocations: 12.09 kB / 1.015 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/1.096, allocations: 4 kB / 1.015 GB, free: 4.363 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.533e-05/1.097, allocations: 104.9 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001644/1.097, allocations: 75.05 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/1.097, allocations: 7.844 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/1.097, allocations: 72.75 kB / 1.016 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/1.097, allocations: 4 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.097, allocations: 4 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.547e-06/1.097, allocations: 7.938 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/1.097, allocations: 300.5 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/1.097, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/1.098, allocations: 11.98 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/1.098, allocations: 4.5 kB / 1.016 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/1.098, allocations: 3.938 kB / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/1.098, allocations: 0 / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.098, allocations: 7.953 kB / 1.016 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/1.098, allocations: 172.2 kB / 1.016 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/1.098, allocations: 81.14 kB / 1.016 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/1.098, allocations: 3.984 kB / 1.016 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/1.098, allocations: 8 kB / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.382e-05/1.098, allocations: 11.94 kB / 1.016 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/1.098, allocations: 3.938 kB / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.381e-05/1.098, allocations: 90.72 kB / 1.016 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/1.098, allocations: 0 / 1.016 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000313/1.099, allocations: 8 kB / 1.016 GB, free: 3.363 MB / 0.6355 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.0005605/1.099, allocations: 0.694 MB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000147/1.099, allocations: 38.44 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.099, allocations: 0 / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.519e-05/1.099, allocations: 21.75 kB / 1.017 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/1.1, allocations: 8.766 kB / 1.017 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004951/1.1, allocations: 116.8 kB / 1.017 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/1.101, allocations: 0.6807 MB / 1.018 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.947e-05/1.101, allocations: 12.31 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/1.101, allocations: 19.02 kB / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/1.101, allocations: 0 / 1.018 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03448/1.135, allocations: 1.007 MB / 1.019 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003441/1.136, allocations: 142.3 kB / 1.019 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.255/3.391, allocations: 0 / 1.019 GB, free: 0.5391 MB / 0.6355 GB