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.41/1.41, 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.001058/0.001058, allocations: 180.3 kB / 326.5 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.784/1.784, allocations: 205 MB / 0.5767 GB, free: 20.99 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.0008689/0.0008688, allocations: 83.98 kB / 0.6804 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003113, allocations: 13.66 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2214, allocations: 105.4 MB / 0.8968 GB, free: 68.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001423/0.2229, allocations: 1.12 MB / 0.8978 GB, free: 67.06 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004194/0.2233, allocations: 228.9 kB / 0.8981 GB, free: 66.84 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.027e-05/0.2234, allocations: 0 / 0.8981 GB, free: 66.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.542e-05/0.2235, allocations: 0 / 0.8981 GB, free: 66.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.967e-05/0.2235, allocations: 3.938 kB / 0.8981 GB, free: 66.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.2237, allocations: 23.91 kB / 0.8981 GB, free: 66.81 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.668e-05/0.2238, allocations: 43.86 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.2239, allocations: 11.98 kB / 0.8981 GB, free: 66.75 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.19e-05/0.224, allocations: 12 kB / 0.8982 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.678e-05/0.224, allocations: 23.84 kB / 0.8982 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.2241, allocations: 4 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.035e-05/0.2241, allocations: 0 / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.799e-05/0.2241, allocations: 4 kB / 0.8982 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.936e-05/0.2241, allocations: 27.84 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.853e-05/0.2242, allocations: 40.09 kB / 0.8983 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2242, allocations: 0 / 0.8983 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2242, allocations: 0 / 0.8983 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.857e-06/0.2242, 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.0005151/0.2248, allocations: 359.3 kB / 0.8986 GB, free: 66.24 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2248, allocations: 15.95 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.2249, allocations: 4.938 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.217e-05/0.2249, allocations: 176.2 kB / 0.8988 GB, free: 66.01 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.225, allocations: 8.375 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.225, allocations: 4.375 kB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001779/0.2252, allocations: 70.2 kB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.2252, allocations: 192 / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.2252, allocations: 7.938 kB / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2252, allocations: 0 / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.2254, allocations: 51.95 kB / 0.8989 GB, free: 65.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.2257, allocations: 276.8 kB / 0.8992 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.2259, allocations: 71.36 kB / 0.8993 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.109e-05/0.226, allocations: 36.95 kB / 0.8993 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.226, allocations: 0 / 0.8993 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.2262, allocations: 87.31 kB / 0.8994 GB, free: 65.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.2262, allocations: 0 / 0.8994 GB, free: 65.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003705/0.2266, allocations: 129.5 kB / 0.8995 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/0.2266, allocations: 51.41 kB / 0.8995 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.493e-05/0.2267, allocations: 109.8 kB / 0.8997 GB, free: 65.02 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.2267, allocations: 29.64 kB / 0.8997 GB, free: 64.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.173e-05/0.2268, allocations: 88.12 kB / 0.8998 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.2268, allocations: 19.83 kB / 0.8998 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.2268, allocations: 17.72 kB / 0.8998 GB, free: 64.85 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.929e-05/0.2269, allocations: 318.8 kB / 0.9001 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.095e-05/0.227, allocations: 27.98 kB / 0.9001 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.378e-05/0.2271, allocations: 68.2 kB / 0.9002 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.2273, allocations: 100.2 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2273, allocations: 3.938 kB / 0.9003 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002214/0.2275, allocations: 125.6 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.2275, allocations: 4 kB / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2275, allocations: 0 / 0.9004 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2276, allocations: 4 kB / 0.9004 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.086e-05/0.2277, allocations: 15.98 kB / 0.9004 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.2277, allocations: 0 / 0.9004 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.158e-05/0.2277, allocations: 15.97 kB / 0.9005 GB, free: 64.13 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.2278, allocations: 8.031 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 6.213e-05/0.2278, allocations: 121.9 kB / 0.9006 GB, free: 64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.2278, allocations: 4 kB / 0.9006 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.2281, allocations: 113.9 kB / 0.9007 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.2281, allocations: 4 kB / 0.9007 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2281, allocations: 3.984 kB / 0.9007 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.2281, allocations: 85.02 kB / 0.9008 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.2282, allocations: 0 / 0.9008 GB, free: 63.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.409e-05/0.2282, allocations: 11.98 kB / 0.9008 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.2283, allocations: 11.94 kB / 0.9008 GB, free: 63.74 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002467/0.2285, allocations: 189.2 kB / 0.901 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002319/0.2288, allocations: 278.8 kB / 0.9012 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.018e-05/0.2289, allocations: 31.97 kB / 0.9013 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.499e-05/0.2289, allocations: 87.28 kB / 0.9014 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of Backend: time 2.91e-07/0.2289, allocations: 0 / 0.9014 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003796/0.2293, allocations: 124.2 kB / 0.9015 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0003666/0.2297, allocations: 0.5944 MB / 0.9021 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of Templates: time 0.002362/0.232, allocations: 0.6748 MB / 0.9027 GB, free: 61.71 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)