Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.445/2.445, allocations: 248.5 MB / 261.1 MB, free: 5.988 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.001392/0.001391, allocations: 181.8 kB / 320.4 MB, free: 15.37 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.2 MB / 0.571 GB, free: 11.77 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.001128/0.001128, allocations: 86.42 kB / 0.6754 GB, free: 0.8633 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.706e-05/4.733e-05, allocations: 4 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.227, allocations: 106.2 MB / 0.8907 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.872/1.099, allocations: 131.4 MB / 1.019 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/1.099, allocations: 70.02 kB / 1.019 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003646/1.103, allocations: 0.8883 MB / 1.02 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/1.103, allocations: 0 / 1.02 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.143e-05/1.103, allocations: 4 kB / 1.02 GB, free: 2.617 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005971/1.104, allocations: 362.8 kB / 1.02 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/1.104, allocations: 12.03 kB / 1.02 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.785e-05/1.104, allocations: 34.5 kB / 1.02 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.333e-05/1.104, allocations: 15.84 kB / 1.02 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/1.104, allocations: 167 kB / 1.021 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/1.104, allocations: 7 kB / 1.021 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/1.104, allocations: 0 / 1.021 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/1.104, allocations: 52.81 kB / 1.021 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.104, allocations: 4 kB / 1.021 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/1.104, allocations: 3.375 kB / 1.021 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/1.104, allocations: 0 / 1.021 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.397e-05/1.104, allocations: 23.36 kB / 1.021 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006328/1.105, allocations: 289.6 kB / 1.021 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001291/1.105, allocations: 48.5 kB / 1.021 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.152e-05/1.105, allocations: 26.61 kB / 1.021 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/1.105, allocations: 0 / 1.021 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/1.105, allocations: 69.53 kB / 1.021 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/1.106, allocations: 0 / 1.021 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002629/1.106, allocations: 78.47 kB / 1.021 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/1.106, allocations: 59.41 kB / 1.021 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.156e-05/1.106, allocations: 97.56 kB / 1.021 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/1.106, allocations: 29.64 kB / 1.021 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.342e-05/1.106, allocations: 84.12 kB / 1.021 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.162e-05/1.106, allocations: 19.03 kB / 1.021 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.423e-06/1.106, allocations: 0 / 1.021 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001273/1.106, allocations: 314 kB / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.085e-05/1.106, allocations: 15 kB / 1.022 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.535e-05/1.106, allocations: 57.16 kB / 1.022 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.022e-05/1.106, allocations: 11.75 kB / 1.022 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.106, allocations: 0 / 1.022 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002042/1.107, allocations: 95.36 kB / 1.022 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/1.107, allocations: 8 kB / 1.022 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.107, allocations: 0 / 1.022 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/1.107, allocations: 4 kB / 1.022 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/1.107, allocations: 16.23 kB / 1.022 GB, free: 0.5391 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/1.107, allocations: 7.953 kB / 1.022 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/1.107, allocations: 23.83 kB / 1.022 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/1.107, allocations: 7.469 kB / 1.022 GB, free: 0.5078 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.579e-05/1.107, allocations: 119.4 kB / 1.022 GB, free: 396 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/1.107, allocations: 4 kB / 1.022 GB, free: 392 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/1.108, allocations: 84.91 kB / 1.022 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/1.108, allocations: 0 / 1.022 GB, free: 312 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.108, allocations: 3.938 kB / 1.022 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/1.108, allocations: 3.953 kB / 1.022 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/1.108, allocations: 339.2 kB / 1.022 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.108, allocations: 0 / 1.022 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/1.108, allocations: 15.98 kB / 1.022 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/1.108, allocations: 0 / 1.022 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/1.108, allocations: 4 kB / 1.022 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/1.108, allocations: 3.953 kB / 1.022 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.108, allocations: 0 / 1.022 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/1.109, allocations: 181.7 kB / 1.023 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/1.109, allocations: 81.02 kB / 1.023 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/1.109, allocations: 4 kB / 1.023 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/1.109, allocations: 15.8 kB / 1.023 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/1.109, allocations: 11.94 kB / 1.023 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/1.109, allocations: 4 kB / 1.023 GB, free: 15.6 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.792e-05/1.109, allocations: 83.22 kB / 1.023 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4e-07/1.109, allocations: 0 / 1.023 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002973/1.109, allocations: 8 kB / 1.023 GB, free: 15.52 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 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0006201/1.11, allocations: 0.707 MB / 1.024 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001906/1.11, allocations: 46.17 kB / 1.024 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/1.11, allocations: 0 / 1.024 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.701e-05/1.11, allocations: 19.94 kB / 1.024 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/1.111, allocations: 19.19 kB / 1.024 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005136/1.111, allocations: 120.5 kB / 1.024 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/1.111, allocations: 0.6848 MB / 1.024 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.029e-05/1.112, allocations: 8.172 kB / 1.024 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.982e-05/1.112, allocations: 16.75 kB / 1.024 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of SimCode: time 7.71e-07/1.112, allocations: 0 / 1.024 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/1.135, allocations: 1.397 MB / 1.026 GB, free: 12.58 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003443/1.136, allocations: 165.9 kB / 1.026 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.343/3.479, allocations: 0 / 1.026 GB, free: 12.36 MB / 0.6511 GB