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.315/2.315, allocations: 248.7 MB / 256.2 MB, free: 7.02 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.00141/0.00141, allocations: 176.8 kB / 315.4 MB, free: 3.98 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.094/2.094, allocations: 205.3 MB / 0.5662 GB, free: 0.6172 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.001138/0.001138, allocations: 89.27 kB / 0.6704 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.056e-05/3.078e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2035, allocations: 106.3 MB / 0.8841 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8747/1.078, allocations: 131.7 MB / 1.013 GB, free: 7.453 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/1.079, allocations: 71.58 kB / 1.013 GB, free: 7.414 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00348/1.082, allocations: 0.8882 MB / 1.014 GB, free: 6.609 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.048e-06/1.082, allocations: 4 kB / 1.014 GB, free: 6.605 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.573e-06/1.082, allocations: 0 / 1.014 GB, free: 6.605 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.0006443/1.083, allocations: 360.5 kB / 1.014 GB, free: 6.215 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/1.083, allocations: 8.031 kB / 1.014 GB, free: 6.207 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/1.083, allocations: 11.91 kB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/1.083, allocations: 170.9 kB / 1.014 GB, free: 5.988 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/1.083, allocations: 7.984 kB / 1.014 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/1.083, allocations: 0 / 1.014 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001137/1.083, allocations: 19.19 kB / 1.014 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/1.083, allocations: 48.75 kB / 1.014 GB, free: 5.922 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/1.083, allocations: 3.984 kB / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/1.083, allocations: 0 / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/1.083, allocations: 0 / 1.014 GB, free: 5.918 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005882/1.084, allocations: 278.3 kB / 1.014 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000118/1.084, allocations: 39.89 kB / 1.015 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.357e-05/1.084, allocations: 16.36 kB / 1.015 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/1.084, allocations: 4 kB / 1.015 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001404/1.084, allocations: 67.2 kB / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/1.084, allocations: 0 / 1.015 GB, free: 5.496 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.000247/1.085, allocations: 79.34 kB / 1.015 GB, free: 5.422 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/1.085, allocations: 51.41 kB / 1.015 GB, free: 5.359 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.835e-05/1.085, allocations: 100.1 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/1.085, allocations: 25.7 kB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/1.085, allocations: 91.31 kB / 1.015 GB, free: 5.137 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/1.085, allocations: 15.72 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-06/1.085, allocations: 2.75 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001327/1.085, allocations: 318.8 kB / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.538e-05/1.085, allocations: 14.44 kB / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.965e-05/1.085, allocations: 39.8 kB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.282e-05/1.085, allocations: 19.23 kB / 1.015 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.085, allocations: 4 kB / 1.015 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002023/1.086, allocations: 76.06 kB / 1.015 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/1.086, allocations: 8 kB / 1.015 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/1.086, allocations: 0 / 1.015 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/1.086, allocations: 4 kB / 1.015 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/1.086, allocations: 16.3 kB / 1.015 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/1.086, allocations: 8 kB / 1.015 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/1.086, allocations: 19.77 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/1.086, allocations: 7.953 kB / 1.015 GB, free: 4.594 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.543e-05/1.086, allocations: 114.4 kB / 1.016 GB, free: 4.48 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001777/1.086, allocations: 68.17 kB / 1.016 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.873e-05/1.086, allocations: 11.84 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002242/1.087, allocations: 81.84 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/1.087, allocations: 4 kB / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/1.087, allocations: 3.953 kB / 1.016 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/1.087, allocations: 4 kB / 1.016 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003964/1.087, allocations: 309.2 kB / 1.016 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/1.087, allocations: 0 / 1.016 GB, free: 3.992 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/1.087, allocations: 11.98 kB / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/1.087, allocations: 0 / 1.016 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/1.087, allocations: 4 kB / 1.016 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/1.087, allocations: 7.953 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/1.087, allocations: 3.938 kB / 1.016 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/1.087, allocations: 162.8 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.002e-05/1.088, allocations: 85.09 kB / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/1.088, allocations: 0 / 1.016 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/1.088, allocations: 12.23 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.599e-05/1.088, allocations: 11.58 kB / 1.016 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/1.088, allocations: 8.047 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.189e-05/1.088, allocations: 83.27 kB / 1.016 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.81e-07/1.088, allocations: 0 / 1.016 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003226/1.088, allocations: 8 kB / 1.016 GB, free: 3.582 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 (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.000534/1.089, allocations: 0.7105 MB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000165/1.089, allocations: 41.98 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.089, allocations: 0 / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.905e-05/1.089, allocations: 22.19 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/1.089, allocations: 7.953 kB / 1.017 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00049/1.09, allocations: 118.4 kB / 1.017 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/1.09, allocations: 0.6848 MB / 1.018 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.299e-05/1.09, allocations: 12.12 kB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/1.09, allocations: 19.05 kB / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of SimCode: time 6.71e-07/1.09, allocations: 0 / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/1.126, allocations: 1.065 MB / 1.019 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003169/1.126, allocations: 155.5 kB / 1.019 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.268/3.394, allocations: 0 / 1.019 GB, free: 0.6719 MB / 0.6355 GB