Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.458/1.458, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001427/0.001427, allocations: 175.9 kB / 326.5 MB, free: 2.277 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.009/2.009, allocations: 205.4 MB / 0.5775 GB, free: 20.3 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.001029/0.001029, allocations: 86.36 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003512, allocations: 13 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2137, allocations: 106.3 MB / 0.9002 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001402/0.2151, allocations: 1.084 MB / 0.9012 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004315/0.2156, allocations: 222.4 kB / 0.9014 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.353e-05/0.2157, allocations: 4 kB / 0.9014 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.2157, allocations: 7.922 kB / 0.9014 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.705e-05/0.2158, allocations: 7.984 kB / 0.9015 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.2159, allocations: 11.98 kB / 0.9015 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.882e-05/0.216, allocations: 27.91 kB / 0.9015 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.49e-05/0.2161, allocations: 15.98 kB / 0.9015 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.2162, allocations: 11.98 kB / 0.9015 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.458e-05/0.2162, allocations: 15.92 kB / 0.9015 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.2162, allocations: 4 kB / 0.9015 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.2162, allocations: 0 / 0.9015 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.2163, allocations: 15.92 kB / 0.9015 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.753e-05/0.2163, allocations: 29.7 kB / 0.9016 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.424e-05/0.2164, allocations: 27.92 kB / 0.9016 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2164, allocations: 3.938 kB / 0.9016 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2164, allocations: 0 / 0.9016 GB, free: 62.37 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.2164, allocations: 4 kB / 0.9016 GB, free: 62.37 MB / 0.6042 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.0004634/0.2169, allocations: 365.4 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2169, allocations: 8.031 kB / 0.902 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.593e-05/0.217, allocations: 38.55 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.217, allocations: 4 kB / 0.902 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.238e-05/0.2171, allocations: 171 kB / 0.9022 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.2171, allocations: 4 kB / 0.9022 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.2171, allocations: 8 kB / 0.9022 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001804/0.2173, allocations: 65.66 kB / 0.9022 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2173, allocations: 0 / 0.9022 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.2173, allocations: 0 / 0.9022 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.2173, allocations: 4 kB / 0.9022 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.2175, allocations: 55.95 kB / 0.9023 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.2179, allocations: 280.7 kB / 0.9026 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.218, allocations: 66.61 kB / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2181, allocations: 0 / 0.9026 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.2183, allocations: 83.56 kB / 0.9027 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.2183, allocations: 4 kB / 0.9027 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003599/0.2186, allocations: 133.5 kB / 0.9028 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.2187, allocations: 51.41 kB / 0.9029 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.222e-05/0.2187, allocations: 121.7 kB / 0.903 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.2187, allocations: 37.64 kB / 0.903 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.858e-05/0.2188, allocations: 80.14 kB / 0.9031 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.2188, allocations: 19.8 kB / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-06/0.2188, allocations: 0 / 0.9031 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.902e-05/0.2189, allocations: 314.8 kB / 0.9034 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-05/0.219, allocations: 35.97 kB / 0.9035 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.785e-05/0.2191, allocations: 60.22 kB / 0.9035 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.364e-05/0.2192, allocations: 35.97 kB / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2192, allocations: 0 / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002238/0.2194, allocations: 121.7 kB / 0.9037 GB, free: 60 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.2194, allocations: 6.5 kB / 0.9037 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2194, allocations: 4 kB / 0.9037 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.2195, allocations: 0 / 0.9037 GB, free: 60 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.532e-05/0.2196, allocations: 19.92 kB / 0.9037 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2196, allocations: 4 kB / 0.9037 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.394e-05/0.2197, allocations: 19.84 kB / 0.9037 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.2197, allocations: 8.031 kB / 0.9037 GB, free: 59.95 MB / 0.6042 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 () * Number of clocked 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 6.171e-05/0.2197, allocations: 117.8 kB / 0.9039 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-06/0.2197, allocations: 0 / 0.9039 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.22, allocations: 118 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.22, allocations: 3.984 kB / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.22, allocations: 0 / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.22, allocations: 0 / 0.904 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.2204, allocations: 366.7 kB / 0.9043 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2204, allocations: 4 kB / 0.9043 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.525e-05/0.2204, allocations: 15.98 kB / 0.9043 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.2204, allocations: 0 / 0.9043 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-06/0.2205, allocations: 0 / 0.9043 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2205, allocations: 0 / 0.9043 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2205, allocations: 7.953 kB / 0.9043 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.2207, allocations: 203.4 kB / 0.9045 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.2207, allocations: 81.02 kB / 0.9046 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.2208, allocations: 4 kB / 0.9046 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.035e-05/0.2209, allocations: 11.98 kB / 0.9046 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.2209, allocations: 7.984 kB / 0.9046 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.2209, allocations: 11.95 kB / 0.9047 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.3e-05/0.2209, allocations: 79.47 kB / 0.9047 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2209, allocations: 0 / 0.9047 GB, free: 58.83 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002149/0.2212, allocations: 15.94 kB / 0.9047 GB, free: 58.81 MB / 0.6042 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) * Number of clocked 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.000405/0.2216, allocations: 0.7319 MB / 0.9055 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.2218, allocations: 75.94 kB / 0.9055 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2218, allocations: 0 / 0.9055 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.772e-05/0.2219, allocations: 35.92 kB / 0.9056 GB, free: 57.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000175/0.2221, allocations: 4 kB / 0.9056 GB, free: 57.94 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.2226, allocations: 0.9779 MB / 0.9065 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.2228, allocations: 0.6848 MB / 0.9072 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.809e-05/0.2228, allocations: 4.188 kB / 0.9072 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.618e-05/0.2228, allocations: 15.44 kB / 0.9072 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.2228, allocations: 0 / 0.9072 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01117/0.234, allocations: 1.347 MB / 0.9085 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.2342, allocations: 195.2 kB / 0.9087 GB, free: 54.72 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.435/1.67, allocations: 0 / 0.9087 GB, free: 54.72 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)