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.0008135/0.0008138, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008905/0.0008906, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.612/1.612, allocations: 292.7 MB / 0.5499 GB, free: 14.58 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.0004611/0.0004612, allocations: 14.06 kB / 0.6737 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2301, allocations: 116.3 MB / 0.7873 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0009565/0.2312, allocations: 397.5 kB / 0.7877 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2326, allocations: 1.029 MB / 0.7887 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.531e-05/0.2327, allocations: 4 kB / 0.7887 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.2327, allocations: 0 / 0.7887 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.143e-05/0.2328, allocations: 7.922 kB / 0.7887 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002768/0.2331, allocations: 27.92 kB / 0.7887 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.985e-05/0.2332, allocations: 43.89 kB / 0.7888 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.2333, allocations: 7.984 kB / 0.7888 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.909e-05/0.2334, allocations: 15.92 kB / 0.7888 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.948e-05/0.2335, allocations: 27.86 kB / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.2335, allocations: 0 / 0.7888 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.372e-05/0.2336, allocations: 11.98 kB / 0.7888 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.086e-05/0.2336, allocations: 7.984 kB / 0.7888 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.741e-05/0.2337, allocations: 33.64 kB / 0.7889 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.2338, allocations: 35.92 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2338, allocations: 0 / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2338, allocations: 4 kB / 0.7889 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.2338, allocations: 0 / 0.7889 GB, free: 10.32 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.0006162/0.2345, allocations: 351.5 kB / 0.7892 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.2345, allocations: 8.031 kB / 0.7892 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.2346, allocations: 7.906 kB / 0.7892 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.2347, allocations: 171 kB / 0.7894 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.2347, allocations: 8 kB / 0.7894 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.2348, allocations: 0 / 0.7894 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.235, allocations: 69.61 kB / 0.7895 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.235, allocations: 0 / 0.7895 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.235, allocations: 8 kB / 0.7895 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.235, allocations: 0 / 0.7895 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.2352, allocations: 47.95 kB / 0.7895 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000485/0.2357, allocations: 280.8 kB / 0.7898 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.2359, allocations: 50.5 kB / 0.7899 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.006e-05/0.236, allocations: 36.92 kB / 0.7899 GB, free: 9.145 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.236, allocations: 3.984 kB / 0.7899 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.2362, allocations: 71.39 kB / 0.79 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.473e-06/0.2362, allocations: 0 / 0.79 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003672/0.2366, allocations: 125.5 kB / 0.7901 GB, free: 8.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2367, allocations: 55.34 kB / 0.7901 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.016e-05/0.2367, allocations: 113.8 kB / 0.7902 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.2368, allocations: 29.7 kB / 0.7903 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.2368, allocations: 84.14 kB / 0.7903 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.2368, allocations: 15.81 kB / 0.7904 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.127e-06/0.2369, allocations: 0 / 0.7904 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.237, allocations: 322.8 kB / 0.7907 GB, free: 8.281 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.61e-05/0.2371, allocations: 27.92 kB / 0.7907 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.2372, allocations: 55.41 kB / 0.7908 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.011e-05/0.2373, allocations: 31.98 kB / 0.7908 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2373, allocations: 0 / 0.7908 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002289/0.2375, allocations: 113.5 kB / 0.7909 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.2375, allocations: 4 kB / 0.7909 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.2375, allocations: 4.125 kB / 0.7909 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.2376, allocations: 4 kB / 0.7909 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.2377, allocations: 15.98 kB / 0.7909 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2377, allocations: 0 / 0.7909 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.482e-05/0.2378, allocations: 19.84 kB / 0.7909 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.2378, allocations: 7.984 kB / 0.7909 GB, free: 7.984 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.027e-05/0.2379, allocations: 117.8 kB / 0.7911 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/0.2379, allocations: 4 kB / 0.7911 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002518/0.2381, allocations: 101.5 kB / 0.7912 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2382, allocations: 4 kB / 0.7912 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2382, allocations: 0 / 0.7912 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2382, allocations: 0 / 0.7912 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003972/0.2386, allocations: 354.8 kB / 0.7915 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2386, allocations: 0 / 0.7915 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.674e-05/0.2386, allocations: 15.98 kB / 0.7915 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2387, allocations: 4 kB / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.2387, allocations: 0 / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2387, allocations: 0 / 0.7915 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.2387, allocations: 7.938 kB / 0.7915 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000256/0.239, allocations: 187.5 kB / 0.7917 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.239, allocations: 85.09 kB / 0.7918 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.2391, allocations: 4 kB / 0.7918 GB, free: 7.008 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.426e-05/0.2391, allocations: 8 kB / 0.7918 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.2392, allocations: 7.969 kB / 0.7918 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.2392, allocations: 7.938 kB / 0.7918 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.283e-05/0.2393, allocations: 91.72 kB / 0.7919 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2393, allocations: 0 / 0.7919 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000237/0.2395, allocations: 19.86 kB / 0.7919 GB, free: 6.875 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001832/0.2397, allocations: 107.2 kB / 0.792 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002447/0.24, allocations: 72.02 kB / 0.7921 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.24, allocations: 8.062 kB / 0.7921 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.2401, allocations: 31.97 kB / 0.7921 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.2404, allocations: 4 kB / 0.7921 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.2408, allocations: 136.7 kB / 0.7923 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2411, allocations: 0.6809 MB / 0.7929 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.973e-05/0.2411, allocations: 7.984 kB / 0.7929 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.2412, allocations: 7.438 kB / 0.7929 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2412, allocations: 0 / 0.7929 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of Templates: time 0.00281/0.244, allocations: 0.6305 MB / 0.7936 GB, free: 5.145 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: