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.0009483/0.0009483, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001086/0.001086, allocations: 177.3 kB / 15.95 MB, free: 216 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.408/1.408, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.725/1.725, allocations: 292.6 MB / 0.5497 GB, free: 14.61 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.0004981/0.0004981, allocations: 18.69 kB / 0.6736 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2597, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008231/0.2606, allocations: 387.9 kB / 0.7875 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2618, allocations: 1.031 MB / 0.7885 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.468e-05/0.2618, allocations: 0 / 0.7885 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.491e-05/0.2618, allocations: 3.938 kB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.824e-05/0.2619, allocations: 11.98 kB / 0.7885 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001918/0.2621, allocations: 31.89 kB / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.079e-05/0.2622, allocations: 27.91 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.367e-05/0.2622, allocations: 4 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.47e-05/0.2623, allocations: 15.98 kB / 0.7886 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.739e-05/0.2624, allocations: 19.91 kB / 0.7886 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.2624, allocations: 4 kB / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.555e-05/0.2625, allocations: 19.86 kB / 0.7886 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.2625, allocations: 8 kB / 0.7886 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.986e-05/0.2625, allocations: 29.7 kB / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.495e-05/0.2626, allocations: 39.91 kB / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.2626, allocations: 0 / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2626, allocations: 0 / 0.7887 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.2626, allocations: 0 / 0.7887 GB, free: 10.34 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.0004692/0.2631, allocations: 347.5 kB / 0.789 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2632, allocations: 12.03 kB / 0.7891 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.3e-05/0.2632, allocations: 7.906 kB / 0.7891 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.2633, allocations: 174.9 kB / 0.7892 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.2633, allocations: 3.984 kB / 0.7892 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.705e-05/0.2634, allocations: 11.98 kB / 0.7892 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.2636, allocations: 57.67 kB / 0.7893 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2636, allocations: 0 / 0.7893 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.2636, allocations: 3.938 kB / 0.7893 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2636, allocations: 4 kB / 0.7893 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.2638, allocations: 51.95 kB / 0.7894 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/0.2642, allocations: 280.9 kB / 0.7896 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.2644, allocations: 46.55 kB / 0.7897 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.2644, allocations: 4 kB / 0.7897 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.2646, allocations: 79.47 kB / 0.7897 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.213e-06/0.2646, allocations: 0 / 0.7897 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003957/0.265, allocations: 125.5 kB / 0.7899 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.2651, allocations: 55.41 kB / 0.7899 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.237e-05/0.2652, allocations: 105.8 kB / 0.79 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.2652, allocations: 29.7 kB / 0.79 GB, free: 8.77 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.2652, allocations: 80.14 kB / 0.7901 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.2653, allocations: 19.8 kB / 0.7901 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-06/0.2653, allocations: 0 / 0.7901 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2654, allocations: 318.8 kB / 0.7904 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.833e-05/0.2655, allocations: 31.98 kB / 0.7905 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.2656, allocations: 59.33 kB / 0.7905 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.2657, allocations: 39.91 kB / 0.7906 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.2658, allocations: 0 / 0.7906 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000252/0.266, allocations: 105.7 kB / 0.7907 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.266, allocations: 4 kB / 0.7907 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.266, allocations: 4 kB / 0.7907 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2661, allocations: 0 / 0.7907 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.2662, allocations: 15.98 kB / 0.7907 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2662, allocations: 0 / 0.7907 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.344e-05/0.2663, allocations: 27.86 kB / 0.7907 GB, free: 8.047 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.2663, allocations: 4 kB / 0.7907 GB, free: 8.043 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.92e-05/0.2664, allocations: 121.7 kB / 0.7908 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.2664, allocations: 0 / 0.7908 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.2667, allocations: 105.6 kB / 0.7909 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.2667, allocations: 0 / 0.7909 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.2667, allocations: 0 / 0.7909 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2667, allocations: 0 / 0.7909 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.2671, allocations: 350.4 kB / 0.7913 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2671, allocations: 4 kB / 0.7913 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.739e-05/0.2672, allocations: 11.98 kB / 0.7913 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.2672, allocations: 0 / 0.7913 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.2672, allocations: 3.938 kB / 0.7913 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2672, allocations: 4 kB / 0.7913 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2672, allocations: 480 / 0.7913 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.2675, allocations: 199.4 kB / 0.7915 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.2676, allocations: 77.55 kB / 0.7916 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.2676, allocations: 0 / 0.7916 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.2677, allocations: 15.98 kB / 0.7916 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.2677, allocations: 4 kB / 0.7916 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.2678, allocations: 8 kB / 0.7916 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.948e-05/0.2678, allocations: 91.25 kB / 0.7917 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2678, allocations: 0 / 0.7917 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002315/0.2681, allocations: 11.91 kB / 0.7917 GB, free: 6.945 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.0001772/0.2682, allocations: 103.2 kB / 0.7918 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.2685, allocations: 75.88 kB / 0.7919 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2685, allocations: 3.938 kB / 0.7919 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.2686, allocations: 27.98 kB / 0.7919 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.2688, allocations: 8.25 kB / 0.7919 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003296/0.2691, allocations: 148.7 kB / 0.792 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.2694, allocations: 0.6848 MB / 0.7927 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.8e-05/0.2694, allocations: 4 kB / 0.7927 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.2695, allocations: 15.42 kB / 0.7927 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of SimCode: time 2.51e-07/0.2695, allocations: 0 / 0.7927 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of Templates: time 0.002854/0.2723, allocations: 0.6292 MB / 0.7933 GB, free: 5.199 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: