Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_8_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 195.1 kB / 16.14 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.644/1.644, allocations: 292.3 MB / 0.5484 GB, free: 13.69 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 66.03 kB / 0.6709 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.191, allocations: 114.5 MB / 0.7828 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001772/0.1928, allocations: 0.7457 MB / 0.7835 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1939, allocations: 1.044 MB / 0.7845 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.994e-05/0.1939, allocations: 4 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.902e-05/0.194, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.487e-05/0.1941, allocations: 11.92 kB / 0.7846 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.1943, allocations: 27.97 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.644e-05/0.1943, allocations: 39.86 kB / 0.7846 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.648e-05/0.1944, allocations: 11.98 kB / 0.7846 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.943e-05/0.1945, allocations: 15.92 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.394e-05/0.1946, allocations: 15.92 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1946, allocations: 4 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.1946, allocations: 15.98 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.554e-05/0.1947, allocations: 15.92 kB / 0.7847 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.1947, allocations: 19.92 kB / 0.7847 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.929e-05/0.1948, allocations: 43.86 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1949, allocations: 0 / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.32e-07/0.1949, allocations: 0 / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.427e-06/0.1949, allocations: 0 / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004561/0.1953, allocations: 355.7 kB / 0.7851 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.1954, allocations: 11.97 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.1954, allocations: 34.73 kB / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.011e-05/0.1954, allocations: 8.844 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.934e-05/0.1955, allocations: 180.2 kB / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.908e-06/0.1956, allocations: 8.312 kB / 0.7853 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1956, allocations: 4.375 kB / 0.7853 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/0.1957, allocations: 62.22 kB / 0.7854 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1958, allocations: 7.938 kB / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.1958, allocations: 0 / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1958, allocations: 0 / 0.7854 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.1959, allocations: 35.97 kB / 0.7854 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003884/0.1963, allocations: 284.7 kB / 0.7857 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.1965, allocations: 42.55 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.68e-05/0.1966, allocations: 24.94 kB / 0.7858 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.1966, allocations: 4 kB / 0.7858 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001814/0.1968, allocations: 71.38 kB / 0.7858 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.1968, allocations: 0 / 0.7858 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.000359/0.1972, allocations: 101.6 kB / 0.7859 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1972, allocations: 55.41 kB / 0.786 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.652e-05/0.1973, allocations: 117.8 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.1973, allocations: 25.7 kB / 0.7861 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.11e-05/0.1974, allocations: 88.14 kB / 0.7862 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.1974, allocations: 11.83 kB / 0.7862 GB, free: 10.19 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.1974, allocations: 17.72 kB / 0.7862 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1975, allocations: 326.8 kB / 0.7866 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.262e-05/0.1976, allocations: 19.98 kB / 0.7866 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.1977, allocations: 51.41 kB / 0.7866 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.1979, allocations: 75.59 kB / 0.7867 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1979, allocations: 0 / 0.7867 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002467/0.1982, allocations: 109.4 kB / 0.7868 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.1982, allocations: 8 kB / 0.7868 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.1982, allocations: 0 / 0.7868 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.829e-06/0.1982, allocations: 0 / 0.7868 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.983e-05/0.1983, allocations: 15.98 kB / 0.7868 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1984, allocations: 4.125 kB / 0.7868 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.35e-05/0.1984, allocations: 7.984 kB / 0.7868 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.1984, allocations: 7.984 kB / 0.7868 GB, free: 9.512 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.505e-05/0.1985, allocations: 121.7 kB / 0.787 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/0.1985, allocations: 7.844 kB / 0.787 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002463/0.1988, allocations: 89.61 kB / 0.7871 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1988, allocations: 7.938 kB / 0.7871 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1988, allocations: 0 / 0.7871 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1988, allocations: 4 kB / 0.7871 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.1992, allocations: 338.4 kB / 0.7874 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1992, allocations: 0 / 0.7874 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.907e-05/0.1993, allocations: 11.98 kB / 0.7874 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1993, allocations: 0 / 0.7874 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.1993, allocations: 4 kB / 0.7874 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1993, allocations: 4 kB / 0.7874 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1993, allocations: 0 / 0.7874 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002504/0.1996, allocations: 187.3 kB / 0.7876 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.1996, allocations: 81.05 kB / 0.7877 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1997, allocations: 0 / 0.7877 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.901e-05/0.1997, allocations: 8.172 kB / 0.7877 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.1998, allocations: 11.94 kB / 0.7877 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.1998, allocations: 4 kB / 0.7877 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.381e-05/0.1998, allocations: 91.27 kB / 0.7878 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1998, allocations: 0 / 0.7878 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002315/0.2001, allocations: 8 kB / 0.7878 GB, free: 8.441 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005205/0.2006, allocations: 0.7202 MB / 0.7885 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002212/0.2008, allocations: 55.89 kB / 0.7885 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2009, allocations: 0 / 0.7885 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.603e-05/0.201, allocations: 27.92 kB / 0.7886 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.2012, allocations: 24.11 kB / 0.7886 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.2026, allocations: 1.372 MB / 0.7899 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.2028, allocations: 0.6809 MB / 0.7906 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.2028, allocations: 4 kB / 0.7906 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.729e-05/0.2029, allocations: 11.44 kB / 0.7906 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2029, allocations: 0 / 0.7906 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0111/0.214, allocations: 1.491 MB / 0.7921 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/0.2142, allocations: 212.1 kB / 0.7923 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.577/1.791, allocations: 4 kB / 0.7923 GB, free: 3.742 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)