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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.368/1.368, allocations: 251.5 MB / 267.4 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.0009646/0.0009646, allocations: 179.6 kB / 326.5 MB, free: 2.727 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.933/1.933, allocations: 205 MB / 0.5766 GB, free: 21 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.0009033/0.0009038, allocations: 91.97 kB / 0.6803 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004799/0.0004799, allocations: 13.66 kB / 0.7938 GB, free: 136.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3077, allocations: 105.4 MB / 0.8968 GB, free: 68.19 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001653/0.3094, allocations: 1.12 MB / 0.8978 GB, free: 67.06 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004378/0.3099, allocations: 228.9 kB / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.034e-05/0.3099, allocations: 0 / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.05e-05/0.31, allocations: 0 / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.957e-05/0.31, allocations: 3.938 kB / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.3103, allocations: 23.92 kB / 0.8981 GB, free: 66.8 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.102e-05/0.3103, allocations: 43.84 kB / 0.8981 GB, free: 66.76 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3105, allocations: 15.98 kB / 0.8981 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.707e-05/0.3105, allocations: 8 kB / 0.8982 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.789e-05/0.3106, allocations: 23.84 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.3106, allocations: 4 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.205e-05/0.3106, allocations: 3.938 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.3107, allocations: 8 kB / 0.8982 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.861e-05/0.3107, allocations: 19.86 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.472e-05/0.3108, allocations: 40.14 kB / 0.8982 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3108, allocations: 0 / 0.8982 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.457e-06/0.3108, allocations: 0 / 0.8982 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.3109, allocations: 4 kB / 0.8983 GB, free: 66.64 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.0005162/0.3114, allocations: 361.1 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3114, allocations: 8.031 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.3115, allocations: 4.938 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.875e-05/0.3116, allocations: 176.2 kB / 0.8988 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.3116, allocations: 8.375 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.3116, allocations: 8.375 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.3118, allocations: 58.23 kB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.3118, allocations: 192 / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.3119, allocations: 7.938 kB / 0.8989 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3119, allocations: 4 kB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.312, allocations: 51.95 kB / 0.8989 GB, free: 65.87 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003788/0.3124, allocations: 280.8 kB / 0.8992 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/0.3126, allocations: 67.42 kB / 0.8992 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.689e-05/0.3127, allocations: 32.91 kB / 0.8993 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.3127, allocations: 4 kB / 0.8993 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.3129, allocations: 83.31 kB / 0.8994 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.413e-06/0.313, allocations: 0 / 0.8994 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003862/0.3134, allocations: 137.5 kB / 0.8995 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.3134, allocations: 51.41 kB / 0.8995 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.829e-05/0.3135, allocations: 105.8 kB / 0.8996 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.3135, allocations: 29.7 kB / 0.8997 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.845e-05/0.3135, allocations: 84.14 kB / 0.8997 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.3136, allocations: 23.73 kB / 0.8998 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/0.3136, allocations: 9.719 kB / 0.8998 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.23e-05/0.3137, allocations: 326.8 kB / 0.9001 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.046e-05/0.3138, allocations: 27.97 kB / 0.9001 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.3139, allocations: 72.2 kB / 0.9002 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.3141, allocations: 96.14 kB / 0.9003 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3141, allocations: 0 / 0.9003 GB, free: 64.31 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002279/0.3143, allocations: 125.7 kB / 0.9004 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3144, allocations: 8 kB / 0.9004 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3144, allocations: 4.25 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3144, allocations: 0 / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.3145, allocations: 24.23 kB / 0.9004 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.3145, allocations: 0 / 0.9004 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.313e-05/0.3146, allocations: 15.98 kB / 0.9004 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.3146, allocations: 12.02 kB / 0.9005 GB, free: 64.12 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 7.416e-05/0.3147, allocations: 121.7 kB / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.025e-05/0.3147, allocations: 0 / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/0.315, allocations: 110 kB / 0.9007 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.315, allocations: 4 kB / 0.9007 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.315, allocations: 3.984 kB / 0.9007 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.315, allocations: 0 / 0.9007 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000343/0.3153, allocations: 370.4 kB / 0.901 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3153, allocations: 0 / 0.901 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-05/0.3154, allocations: 15.98 kB / 0.9011 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3154, allocations: 0 / 0.9011 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3154, allocations: 4 kB / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3154, allocations: 0 / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3154, allocations: 0 / 0.9011 GB, free: 63.43 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.3157, allocations: 203.4 kB / 0.9013 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.753e-05/0.3158, allocations: 85.02 kB / 0.9013 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.3158, allocations: 4 kB / 0.9013 GB, free: 63.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.412e-05/0.3159, allocations: 11.98 kB / 0.9013 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.3159, allocations: 4 kB / 0.9014 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.3159, allocations: 11.92 kB / 0.9014 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.64e-05/0.316, allocations: 83.28 kB / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.316, allocations: 0 / 0.9014 GB, free: 63 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002079/0.3162, allocations: 15.94 kB / 0.9015 GB, free: 62.99 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.0001119/0.3163, allocations: 99.25 kB / 0.9016 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3166, allocations: 83.81 kB / 0.9016 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3166, allocations: 0 / 0.9016 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.87e-05/0.3167, allocations: 32.17 kB / 0.9017 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.3169, allocations: 12.3 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003403/0.3173, allocations: 172.8 kB / 0.9018 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001224/0.3174, allocations: 0.6809 MB / 0.9025 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.3174, allocations: 11.42 kB / 0.9025 GB, free: 61.84 MB / 0.6042 GB Notification: Performance of SimCode: time 3.61e-07/0.3175, allocations: 4 kB / 0.9025 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of Templates: time 0.002187/0.3196, allocations: 0.7891 MB / 0.9033 GB, free: 61.05 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)