Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.UnitDelay,fileNamePrefix="Buildings_7_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.324/2.324, allocations: 248.7 MB / 256.2 MB, free: 7.035 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.001403/0.001403, allocations: 181.5 kB / 315.4 MB, free: 4.004 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.06/2.06, allocations: 205.3 MB / 0.5662 GB, free: 0.5664 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.001139/0.001139, allocations: 86.55 kB / 0.6704 GB, free: 5.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.481e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2022, allocations: 106.3 MB / 0.8841 GB, free: 13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.879/1.081, allocations: 131.7 MB / 1.013 GB, free: 7.164 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/1.082, allocations: 70.45 kB / 1.013 GB, free: 7.125 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003426/1.085, allocations: 0.8706 MB / 1.014 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.794e-06/1.085, allocations: 0 / 1.014 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.063e-06/1.085, allocations: 0 / 1.014 GB, free: 6.332 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.0005831/1.086, allocations: 356.7 kB / 1.014 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/1.086, allocations: 12.78 kB / 1.014 GB, free: 5.934 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.952e-05/1.086, allocations: 11.84 kB / 1.014 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001405/1.086, allocations: 178.9 kB / 1.014 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/1.086, allocations: 0 / 1.014 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/1.086, allocations: 4 kB / 1.014 GB, free: 5.707 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.855e-05/1.086, allocations: 14.31 kB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/1.086, allocations: 48.67 kB / 1.014 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/1.086, allocations: 0 / 1.014 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/1.086, allocations: 3.938 kB / 1.014 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/1.086, allocations: 0 / 1.014 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004736/1.087, allocations: 257.5 kB / 1.014 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/1.087, allocations: 44.88 kB / 1.014 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.581e-05/1.087, allocations: 12.61 kB / 1.015 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/1.087, allocations: 4 kB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001387/1.087, allocations: 60.53 kB / 1.015 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.954e-06/1.087, allocations: 0 / 1.015 GB, free: 5.246 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002269/1.088, allocations: 70.47 kB / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/1.088, allocations: 54.28 kB / 1.015 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.838e-05/1.088, allocations: 104.3 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/1.088, allocations: 25.7 kB / 1.015 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/1.088, allocations: 87.27 kB / 1.015 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/1.088, allocations: 15.19 kB / 1.015 GB, free: 4.883 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/1.088, allocations: 4 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001259/1.088, allocations: 318.8 kB / 1.015 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.208e-05/1.088, allocations: 14.44 kB / 1.015 GB, free: 4.551 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.748e-05/1.088, allocations: 37.92 kB / 1.015 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/1.088, allocations: 22.86 kB / 1.015 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.088, allocations: 0 / 1.015 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001838/1.088, allocations: 79.03 kB / 1.015 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/1.088, allocations: 4 kB / 1.015 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/1.088, allocations: 0 / 1.015 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/1.088, allocations: 4 kB / 1.015 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/1.089, allocations: 15.98 kB / 1.015 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/1.089, allocations: 4.156 kB / 1.015 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/1.089, allocations: 15.92 kB / 1.015 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/1.089, allocations: 7.953 kB / 1.015 GB, free: 4.359 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.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.637e-05/1.089, allocations: 114.8 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001443/1.089, allocations: 63.91 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/1.089, allocations: 7.062 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001971/1.089, allocations: 76.61 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/1.089, allocations: 0 / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.089, allocations: 11.94 kB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.089, allocations: 0 / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003711/1.09, allocations: 292.3 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/1.09, allocations: 0 / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/1.09, allocations: 16.17 kB / 1.016 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/1.09, allocations: 0 / 1.016 GB, free: 3.77 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/1.09, allocations: 3.938 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/1.09, allocations: 7.891 kB / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.09, allocations: 4 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001931/1.09, allocations: 161.5 kB / 1.016 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.827e-05/1.09, allocations: 85 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/1.09, allocations: 3.75 kB / 1.016 GB, free: 3.488 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/1.09, allocations: 11.98 kB / 1.016 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/1.091, allocations: 11.95 kB / 1.016 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/1.091, allocations: 4 kB / 1.016 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.756e-05/1.091, allocations: 86.41 kB / 1.016 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.5e-07/1.091, allocations: 0 / 1.016 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003066/1.091, allocations: 11.98 kB / 1.016 GB, free: 3.367 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * 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.0005039/1.091, allocations: 0.687 MB / 1.017 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001533/1.092, allocations: 38.5 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.092, allocations: 0 / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.535e-05/1.092, allocations: 22.3 kB / 1.017 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002813/1.092, allocations: 10.36 kB / 1.017 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004858/1.092, allocations: 113.8 kB / 1.017 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/1.093, allocations: 0.681 MB / 1.018 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.695e-05/1.093, allocations: 16.11 kB / 1.018 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/1.093, allocations: 14.75 kB / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of SimCode: time 6.81e-07/1.093, allocations: 0 / 1.018 GB, free: 1.738 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03272/1.126, allocations: 1.045 MB / 1.019 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003096/1.126, allocations: 149 kB / 1.019 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/3.378, allocations: 0 / 1.019 GB, free: 0.5156 MB / 0.6355 GB