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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001559/0.001559, allocations: 197.6 kB / 16.25 MB, free: 6.621 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.792/1.792, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.883/1.883, allocations: 292.3 MB / 0.5485 GB, free: 13.65 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.001494/0.001494, allocations: 70.08 kB / 0.671 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3271, allocations: 114.5 MB / 0.7829 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002121/0.3293, allocations: 0.7348 MB / 0.7836 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.3306, allocations: 1.052 MB / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.919e-05/0.3306, allocations: 0 / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.939e-05/0.3307, allocations: 0 / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.92e-05/0.3308, allocations: 3.938 kB / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.3311, allocations: 39.89 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.378e-05/0.3312, allocations: 35.92 kB / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3313, allocations: 12 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.502e-05/0.3314, allocations: 23.86 kB / 0.7847 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.396e-05/0.3314, allocations: 23.91 kB / 0.7847 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.3315, allocations: 4 kB / 0.7847 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.3315, allocations: 15.98 kB / 0.7848 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.878e-05/0.3316, allocations: 11.92 kB / 0.7848 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.3316, allocations: 15.94 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.3317, allocations: 51.84 kB / 0.7848 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3317, allocations: 4 kB / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3318, allocations: 0 / 0.7848 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.3318, allocations: 0 / 0.7848 GB, free: 11.89 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.0005445/0.3323, allocations: 355.7 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3324, allocations: 12.02 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.3324, allocations: 4.844 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.3325, allocations: 172.3 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.3325, allocations: 384 / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.3326, allocations: 8.375 kB / 0.7854 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.3328, allocations: 62.17 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.3328, allocations: 4.188 kB / 0.7854 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3328, allocations: 7.938 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3328, allocations: 0 / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.333, allocations: 39.95 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.3334, allocations: 276.8 kB / 0.7857 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.3336, allocations: 50.5 kB / 0.7858 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.886e-05/0.3337, allocations: 28.92 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.3337, allocations: 3.984 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.3339, allocations: 71.38 kB / 0.7859 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.3339, allocations: 0 / 0.7859 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003646/0.3343, allocations: 109.6 kB / 0.786 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.3343, allocations: 51.41 kB / 0.786 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.87e-05/0.3344, allocations: 105.8 kB / 0.7861 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.3345, allocations: 33.7 kB / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.351e-05/0.3345, allocations: 84.05 kB / 0.7863 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.3345, allocations: 11.91 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.845e-05/0.3346, allocations: 25.7 kB / 0.7863 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.3347, allocations: 314.8 kB / 0.7866 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.476e-05/0.3348, allocations: 23.97 kB / 0.7866 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3349, allocations: 47.41 kB / 0.7867 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.3351, allocations: 83.28 kB / 0.7867 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3351, allocations: 0 / 0.7867 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002338/0.3353, allocations: 101.5 kB / 0.7868 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.3354, allocations: 8.031 kB / 0.7868 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3354, allocations: 0 / 0.7868 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3354, allocations: 7.938 kB / 0.7868 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3355, allocations: 15.98 kB / 0.7869 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3355, allocations: 0 / 0.7869 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.252e-05/0.3356, allocations: 11.94 kB / 0.7869 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3356, allocations: 3.984 kB / 0.7869 GB, free: 9.551 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 8.881e-05/0.3357, allocations: 117.8 kB / 0.787 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.3357, allocations: 11.91 kB / 0.787 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002474/0.336, allocations: 93.55 kB / 0.7871 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.336, allocations: 0 / 0.7871 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.336, allocations: 320 / 0.7871 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.336, allocations: 3.938 kB / 0.7871 GB, free: 9.309 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004057/0.3364, allocations: 346.5 kB / 0.7874 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3364, allocations: 0 / 0.7874 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.3365, allocations: 7.984 kB / 0.7874 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3365, allocations: 0 / 0.7874 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3365, allocations: 4 kB / 0.7874 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3365, allocations: 0 / 0.7874 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3365, allocations: 0 / 0.7874 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.3368, allocations: 179.5 kB / 0.7876 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.3368, allocations: 93 kB / 0.7877 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3368, allocations: 0 / 0.7877 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.871e-05/0.3369, allocations: 4 kB / 0.7877 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.337, allocations: 11.92 kB / 0.7877 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.337, allocations: 3.938 kB / 0.7877 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.279e-05/0.337, allocations: 87.27 kB / 0.7878 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.337, allocations: 0 / 0.7878 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002392/0.3373, allocations: 16 kB / 0.7878 GB, free: 8.48 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.0001532/0.3375, allocations: 107.9 kB / 0.7879 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002425/0.3377, allocations: 59.89 kB / 0.788 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3377, allocations: 0 / 0.788 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.734e-05/0.3378, allocations: 27.97 kB / 0.788 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.3381, allocations: 10.83 kB / 0.788 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000352/0.3385, allocations: 137.5 kB / 0.7881 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.3387, allocations: 0.6807 MB / 0.7888 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.3388, allocations: 4 kB / 0.7888 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.475e-05/0.3388, allocations: 19.38 kB / 0.7888 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of SimCode: time 1.603e-06/0.3388, allocations: 4 kB / 0.7888 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of Templates: time 0.003042/0.3418, allocations: 0.6912 MB / 0.7895 GB, free: 6.695 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)