Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.243/2.243, allocations: 251.1 MB / 266.7 MB, free: 11.56 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.001374/0.001374, allocations: 180.4 kB / 326.3 MB, free: 2.844 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.443/2.443, allocations: 205.4 MB / 0.5772 GB, free: 20.79 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.0009784/0.0009782, allocations: 92.41 kB / 0.6817 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004892/0.0004892, allocations: 9.469 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2196, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001771/0.2214, allocations: 1.096 MB / 0.9006 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005529/0.222, allocations: 217.4 kB / 0.9008 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.725e-05/0.2221, allocations: 4 kB / 0.9008 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.005e-05/0.2221, allocations: 3.984 kB / 0.9008 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.916e-05/0.2223, allocations: 7.922 kB / 0.9008 GB, free: 64.17 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.2225, allocations: 11.98 kB / 0.9008 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.003e-05/0.2226, allocations: 39.86 kB / 0.9009 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.2227, allocations: 15.98 kB / 0.9009 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.674e-05/0.2228, allocations: 15.94 kB / 0.9009 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.307e-05/0.2229, allocations: 23.89 kB / 0.9009 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.2229, allocations: 4 kB / 0.9009 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.2229, allocations: 0 / 0.9009 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.2229, allocations: 7.938 kB / 0.9009 GB, free: 64.05 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.223, allocations: 33.64 kB / 0.901 GB, free: 64.01 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.826e-05/0.2231, allocations: 35.92 kB / 0.901 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.2231, allocations: 0 / 0.901 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.914e-06/0.2231, allocations: 0 / 0.901 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2231, allocations: 4 kB / 0.901 GB, free: 63.97 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.0006341/0.2238, allocations: 363.5 kB / 0.9013 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.2239, allocations: 12.03 kB / 0.9014 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.2239, allocations: 0.9375 kB / 0.9014 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.2241, allocations: 164.4 kB / 0.9015 GB, free: 63.36 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.2241, allocations: 4.375 kB / 0.9015 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/0.2241, allocations: 4.375 kB / 0.9015 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.2244, allocations: 70.2 kB / 0.9016 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.2245, allocations: 8.172 kB / 0.9016 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.2245, allocations: 3.938 kB / 0.9016 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2245, allocations: 0 / 0.9016 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003028/0.2248, allocations: 59.89 kB / 0.9017 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004529/0.2253, allocations: 276.8 kB / 0.9019 GB, free: 62.88 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.2255, allocations: 62.5 kB / 0.902 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2257, allocations: 40.89 kB / 0.902 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.2257, allocations: 0 / 0.902 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.226, allocations: 79.38 kB / 0.9021 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.355e-06/0.226, allocations: 0 / 0.9021 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006271/0.2266, allocations: 129.6 kB / 0.9022 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.2267, allocations: 55.39 kB / 0.9023 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.246e-05/0.2268, allocations: 113.8 kB / 0.9024 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.2268, allocations: 37.62 kB / 0.9024 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/0.2269, allocations: 91.98 kB / 0.9025 GB, free: 62.22 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.2269, allocations: 11.89 kB / 0.9025 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/0.2269, allocations: 8 kB / 0.9025 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.348e-05/0.227, allocations: 314.8 kB / 0.9028 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.2273, allocations: 27.98 kB / 0.9028 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.2276, allocations: 64.27 kB / 0.9029 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.2279, allocations: 27.98 kB / 0.9029 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.2279, allocations: 3.938 kB / 0.9029 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005478/0.2285, allocations: 125.5 kB / 0.9031 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.2285, allocations: 11.94 kB / 0.9031 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2286, allocations: 0 / 0.9031 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.2286, allocations: 256 / 0.9031 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.2288, allocations: 20.14 kB / 0.9031 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.2288, allocations: 11.94 kB / 0.9031 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.2289, allocations: 11.91 kB / 0.9031 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.2289, allocations: 11.98 kB / 0.9031 GB, free: 61.55 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 9.724e-05/0.229, allocations: 119.3 kB / 0.9032 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.2291, allocations: 0 / 0.9032 GB, free: 61.43 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004315/0.2295, allocations: 117.9 kB / 0.9033 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2295, allocations: 0 / 0.9033 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2295, allocations: 0 / 0.9033 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.21e-05/0.2296, allocations: 84.95 kB / 0.9034 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.2296, allocations: 8 kB / 0.9034 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.2297, allocations: 15.98 kB / 0.9035 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.903e-05/0.2298, allocations: 7.922 kB / 0.9035 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004666/0.2303, allocations: 184.9 kB / 0.9036 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004802/0.2308, allocations: 274.7 kB / 0.9039 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002054/0.231, allocations: 31.98 kB / 0.9039 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.265e-05/0.2311, allocations: 91.27 kB / 0.904 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of Backend: time 9.12e-07/0.2311, allocations: 0 / 0.904 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005666/0.2316, allocations: 124.6 kB / 0.9041 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0005128/0.2322, allocations: 0.584 MB / 0.9047 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of Templates: time 0.003545/0.2357, allocations: 0.6528 MB / 0.9053 GB, free: 59.17 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)