Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.775/1.775, allocations: 287.4 MB / 303.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001216/0.001216, allocations: 179.2 kB / 371.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.699/1.699, allocations: 205.4 MB / 0.6304 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007433/0.0007432, allocations: 84.88 kB / 0.7438 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004005, allocations: 11.44 kB / 0.8667 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2389, allocations: 115.3 MB / 0.9793 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008938/0.2399, allocations: 393.8 kB / 0.9797 GB, free: 27.78 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001152/0.241, allocations: 1.028 MB / 0.9807 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.527e-05/0.2411, allocations: 4 kB / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.082e-05/0.2411, allocations: 3.938 kB / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.618e-05/0.2412, allocations: 0 / 0.9807 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.2415, allocations: 35.89 kB / 0.9807 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.563e-05/0.2415, allocations: 39.86 kB / 0.9807 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2417, allocations: 8 kB / 0.9808 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.744e-05/0.2417, allocations: 11.98 kB / 0.9808 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.852e-05/0.2418, allocations: 19.91 kB / 0.9808 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.2418, allocations: 4 kB / 0.9808 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.118e-05/0.2419, allocations: 19.92 kB / 0.9808 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.485e-05/0.2419, allocations: 8 kB / 0.9808 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.242, allocations: 25.7 kB / 0.9808 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.571e-05/0.2421, allocations: 31.92 kB / 0.9809 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.2421, allocations: 4 kB / 0.9809 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2421, allocations: 0 / 0.9809 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2421, allocations: 0 / 0.9809 GB, free: 26.52 MB / 0.6198 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.0004672/0.2426, allocations: 359.6 kB / 0.9812 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2426, allocations: 8.031 kB / 0.9812 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.2427, allocations: 8.844 kB / 0.9812 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.665e-05/0.2427, allocations: 176.2 kB / 0.9814 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.2428, allocations: 4.375 kB / 0.9814 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.2428, allocations: 384 / 0.9814 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.243, allocations: 66.23 kB / 0.9815 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.243, allocations: 192 / 0.9815 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.243, allocations: 7.938 kB / 0.9815 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.243, allocations: 3.938 kB / 0.9815 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.2432, allocations: 47.95 kB / 0.9815 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.2437, allocations: 284.8 kB / 0.9818 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.2438, allocations: 50.5 kB / 0.9818 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.637e-05/0.2439, allocations: 36.92 kB / 0.9819 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2439, allocations: 0 / 0.9819 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/0.2441, allocations: 71.39 kB / 0.9819 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.796e-06/0.2441, allocations: 3.984 kB / 0.982 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0003585/0.2445, allocations: 129.6 kB / 0.9821 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/0.2445, allocations: 51.41 kB / 0.9821 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.829e-05/0.2446, allocations: 105.8 kB / 0.9822 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.2446, allocations: 37.7 kB / 0.9823 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.444e-05/0.2447, allocations: 80.14 kB / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.2447, allocations: 15.81 kB / 0.9824 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.2447, allocations: 0 / 0.9824 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.2448, allocations: 314.8 kB / 0.9827 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.2448, allocations: 23.98 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.555e-05/0.245, allocations: 59.41 kB / 0.9827 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.2451, allocations: 83.34 kB / 0.9828 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.2451, allocations: 3.938 kB / 0.9828 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002193/0.2454, allocations: 117.5 kB / 0.9829 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2454, allocations: 8 kB / 0.9829 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2454, allocations: 0 / 0.9829 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2454, allocations: 0 / 0.9829 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.2455, allocations: 19.98 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2456, allocations: 4 kB / 0.983 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.464e-05/0.2456, allocations: 19.98 kB / 0.983 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.2456, allocations: 0 / 0.983 GB, free: 24.12 MB / 0.6198 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 7.293e-05/0.2457, allocations: 121.8 kB / 0.9831 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-06/0.2457, allocations: 7.938 kB / 0.9831 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000243/0.246, allocations: 105.5 kB / 0.9832 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.246, allocations: 0 / 0.9832 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.246, allocations: 0 / 0.9832 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.765e-05/0.246, allocations: 81.02 kB / 0.9833 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.917e-05/0.246, allocations: 4 kB / 0.9833 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.997e-05/0.2461, allocations: 7.984 kB / 0.9833 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.2462, allocations: 19.86 kB / 0.9833 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002456/0.2464, allocations: 176.9 kB / 0.9835 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002352/0.2467, allocations: 270.8 kB / 0.9837 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.96e-05/0.2468, allocations: 31.97 kB / 0.9838 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.504e-05/0.2468, allocations: 79.28 kB / 0.9838 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of Backend: time 2.81e-07/0.2468, allocations: 4 kB / 0.9838 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004375/0.2472, allocations: 126.3 kB / 0.984 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0004489/0.2477, allocations: 0.5879 MB / 0.9845 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of Templates: time 0.00286/0.2506, allocations: 0.7302 MB / 0.9853 GB, free: 21.68 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)