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.312/1.312, allocations: 251.5 MB / 266.7 MB, free: 11.04 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.001003/0.001003, allocations: 173.9 kB / 325.8 MB, free: 2.695 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205 MB / 0.576 GB, free: 20.97 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.0007256/0.0007255, allocations: 93.86 kB / 0.6797 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003256, allocations: 8.375 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1853, allocations: 105.4 MB / 0.8962 GB, free: 68.09 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001197/0.1865, allocations: 1.124 MB / 0.8973 GB, free: 66.95 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003516/0.1869, allocations: 229.9 kB / 0.8975 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.056e-05/0.1869, allocations: 0 / 0.8975 GB, free: 66.73 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.109e-05/0.187, allocations: 3.938 kB / 0.8975 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.463e-05/0.1871, allocations: 3.984 kB / 0.8975 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000143/0.1872, allocations: 23.92 kB / 0.8976 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 5.795e-05/0.1873, allocations: 47.84 kB / 0.8976 GB, free: 66.65 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.194e-05/0.1874, allocations: 12.28 kB / 0.8976 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.127e-05/0.1874, allocations: 7.984 kB / 0.8976 GB, free: 66.63 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.682e-05/0.1875, allocations: 23.86 kB / 0.8976 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.1875, allocations: 0 / 0.8976 GB, free: 66.61 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.688e-06/0.1875, allocations: 4 kB / 0.8976 GB, free: 66.6 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.1875, allocations: 7.984 kB / 0.8977 GB, free: 66.59 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.1875, allocations: 23.81 kB / 0.8977 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.735e-05/0.1876, allocations: 43.78 kB / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1876, allocations: 0 / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.133e-06/0.1876, allocations: 0 / 0.8977 GB, free: 66.53 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.1876, allocations: 0 / 0.8977 GB, free: 66.53 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.0004107/0.1881, allocations: 363.5 kB / 0.8981 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.1881, allocations: 8.031 kB / 0.8981 GB, free: 66.11 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.949e-05/0.1881, allocations: 38.75 kB / 0.8981 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.304e-05/0.1882, allocations: 0.9375 kB / 0.8981 GB, free: 66.07 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.95e-05/0.1882, allocations: 176.2 kB / 0.8983 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.1883, allocations: 4.375 kB / 0.8983 GB, free: 65.85 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-06/0.1883, allocations: 4.375 kB / 0.8983 GB, free: 65.85 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001663/0.1884, allocations: 70.22 kB / 0.8984 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.1885, allocations: 7.875 kB / 0.8984 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.547e-06/0.1885, allocations: 0 / 0.8984 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1885, allocations: 0 / 0.8984 GB, free: 65.77 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.1886, allocations: 55.91 kB / 0.8984 GB, free: 65.71 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003132/0.189, allocations: 280.8 kB / 0.8987 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.1891, allocations: 66.53 kB / 0.8987 GB, free: 65.31 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.707e-05/0.1892, allocations: 40.89 kB / 0.8988 GB, free: 65.27 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.1892, allocations: 0 / 0.8988 GB, free: 65.27 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.1894, allocations: 79.39 kB / 0.8989 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.1894, allocations: 0 / 0.8989 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.000353/0.1898, allocations: 133.5 kB / 0.899 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.1898, allocations: 59.34 kB / 0.899 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.697e-05/0.1899, allocations: 113.8 kB / 0.8992 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.1899, allocations: 25.7 kB / 0.8992 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.03e-05/0.1899, allocations: 92.12 kB / 0.8993 GB, free: 64.73 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.19, allocations: 11.75 kB / 0.8993 GB, free: 64.71 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/0.19, allocations: 17.72 kB / 0.8993 GB, free: 64.69 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.032e-05/0.1901, allocations: 326.8 kB / 0.8996 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.902e-05/0.1901, allocations: 27.98 kB / 0.8996 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.37e-05/0.1902, allocations: 60.27 kB / 0.8997 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.1904, allocations: 104.2 kB / 0.8998 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1904, allocations: 0 / 0.8998 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000216/0.1907, allocations: 121.6 kB / 0.8999 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.1907, allocations: 4 kB / 0.8999 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.1907, allocations: 4 kB / 0.8999 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.1907, allocations: 0 / 0.8999 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.122e-05/0.1908, allocations: 16.23 kB / 0.8999 GB, free: 64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1908, allocations: 4.312 kB / 0.8999 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.974e-05/0.1909, allocations: 19.92 kB / 0.9 GB, free: 63.97 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1909, allocations: 4 kB / 0.9 GB, free: 63.97 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.firstTrigger,$PRE.unitDelay1.firstTrigger,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.267e-05/0.191, allocations: 124.5 kB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.191, allocations: 4 kB / 0.9001 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002321/0.1912, allocations: 106 kB / 0.9002 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1912, allocations: 4 kB / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1912, allocations: 0 / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1912, allocations: 0 / 0.9002 GB, free: 63.72 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.1916, allocations: 366.6 kB / 0.9005 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1916, allocations: 4 kB / 0.9005 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.385e-05/0.1916, allocations: 19.92 kB / 0.9006 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.572e-06/0.1917, allocations: 0 / 0.9006 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.1917, allocations: 4 kB / 0.9006 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1917, allocations: 0 / 0.9006 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1917, allocations: 3.984 kB / 0.9006 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.1919, allocations: 207.4 kB / 0.9008 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.192, allocations: 84.95 kB / 0.9008 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.192, allocations: 0 / 0.9008 GB, free: 62.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.031e-05/0.1921, allocations: 15.98 kB / 0.9009 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.1921, allocations: 15.86 kB / 0.9009 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1921, allocations: 8 kB / 0.9009 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.396e-05/0.1922, allocations: 83.28 kB / 0.901 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1922, allocations: 0 / 0.901 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002026/0.1924, allocations: 8 kB / 0.901 GB, free: 62.83 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003763/0.1928, allocations: 0.736 MB / 0.9017 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002035/0.193, allocations: 83.88 kB / 0.9018 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.193, allocations: 0 / 0.9018 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.379e-05/0.1931, allocations: 31.98 kB / 0.9018 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.1933, allocations: 15.86 kB / 0.9018 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.1945, allocations: 1.434 MB / 0.9032 GB, free: 60.4 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.842e-05/0.1946, allocations: 0.6809 MB / 0.9039 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.598e-05/0.1946, allocations: 4 kB / 0.9039 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.359e-05/0.1947, allocations: 15.42 kB / 0.9039 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of SimCode: time 3.41e-07/0.1947, allocations: 0 / 0.9039 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01039/0.205, allocations: 1.369 MB / 0.9052 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001283/0.2052, allocations: 213.3 kB / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.412/1.618, allocations: 2.25 kB / 0.9054 GB, free: 58.2 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)