Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.368/2.368, allocations: 251.3 MB / 266.2 MB, free: 11.5 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001386/0.001386, allocations: 180.3 kB / 325.8 MB, free: 2.773 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.652/2.652, allocations: 205.4 MB / 0.5767 GB, free: 21.11 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 92.69 kB / 0.6813 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004772, allocations: 16.75 kB / 0.7953 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2109, allocations: 106.3 MB / 0.899 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001597/0.2126, allocations: 1.092 MB / 0.9001 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005187/0.2132, allocations: 229.3 kB / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.599e-05/0.2132, allocations: 0 / 0.9003 GB, free: 64.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.07e-05/0.2133, allocations: 3.938 kB / 0.9003 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.573e-05/0.2133, allocations: 7.938 kB / 0.9003 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002166/0.2136, allocations: 19.97 kB / 0.9004 GB, free: 64.52 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.119e-05/0.2137, allocations: 43.84 kB / 0.9004 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.2138, allocations: 7.938 kB / 0.9004 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.742e-05/0.2138, allocations: 19.92 kB / 0.9004 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.969e-05/0.2139, allocations: 19.92 kB / 0.9004 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.2139, allocations: 0 / 0.9004 GB, free: 64.43 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.397e-05/0.214, allocations: 4 kB / 0.9005 GB, free: 64.42 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.214, allocations: 7.969 kB / 0.9005 GB, free: 64.41 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.183e-05/0.214, allocations: 37.64 kB / 0.9005 GB, free: 64.37 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.49e-05/0.2141, allocations: 31.94 kB / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2141, allocations: 0 / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2141, allocations: 0 / 0.9005 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.2142, allocations: 0 / 0.9005 GB, free: 64.34 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.0005963/0.2148, allocations: 367.3 kB / 0.9009 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2148, allocations: 8.031 kB / 0.9009 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.2149, allocations: 4.938 kB / 0.9009 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.548e-05/0.215, allocations: 172.3 kB / 0.9011 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.215, allocations: 384 / 0.9011 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.215, allocations: 4.375 kB / 0.9011 GB, free: 63.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.2153, allocations: 66.23 kB / 0.9011 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2153, allocations: 192 / 0.9011 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2153, allocations: 11.92 kB / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2154, allocations: 0 / 0.9011 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.2157, allocations: 55.95 kB / 0.9012 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.2161, allocations: 280.7 kB / 0.9015 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.2164, allocations: 70.55 kB / 0.9015 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001599/0.2165, allocations: 32.91 kB / 0.9016 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.2166, allocations: 7.984 kB / 0.9016 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.2169, allocations: 83.25 kB / 0.9016 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.605e-06/0.2169, allocations: 0 / 0.9016 GB, free: 63.03 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006384/0.2175, allocations: 133.6 kB / 0.9018 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.2176, allocations: 55.41 kB / 0.9018 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.893e-05/0.2177, allocations: 109.8 kB / 0.9019 GB, free: 62.71 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.2177, allocations: 25.7 kB / 0.9019 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.2177, allocations: 92.05 kB / 0.902 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.2178, allocations: 15.73 kB / 0.902 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.2178, allocations: 8 kB / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.522e-05/0.2179, allocations: 310.8 kB / 0.9024 GB, free: 62.25 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.218, allocations: 35.97 kB / 0.9024 GB, free: 62.21 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.2182, allocations: 64.2 kB / 0.9024 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.2184, allocations: 39.92 kB / 0.9025 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2184, allocations: 0 / 0.9025 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004939/0.2189, allocations: 117.5 kB / 0.9026 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.219, allocations: 4 kB / 0.9026 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.219, allocations: 7.938 kB / 0.9026 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.219, allocations: 0 / 0.9026 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.2192, allocations: 15.98 kB / 0.9026 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.2192, allocations: 4.156 kB / 0.9026 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.2193, allocations: 23.89 kB / 0.9027 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.2193, allocations: 0 / 0.9027 GB, free: 61.92 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 8.542e-05/0.2194, allocations: 121.7 kB / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.2194, allocations: 4 kB / 0.9028 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004209/0.2199, allocations: 110 kB / 0.9029 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2199, allocations: 0 / 0.9029 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2199, allocations: 3.984 kB / 0.9029 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.2199, allocations: 0 / 0.9029 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000571/0.2205, allocations: 366.5 kB / 0.9032 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2205, allocations: 4 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.2206, allocations: 8 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2206, allocations: 0 / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2207, allocations: 4.375 kB / 0.9032 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2207, allocations: 3.984 kB / 0.9033 GB, free: 61.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2207, allocations: 4 kB / 0.9033 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.2211, allocations: 207.3 kB / 0.9035 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.664e-05/0.2211, allocations: 81.23 kB / 0.9035 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.593e-05/0.2212, allocations: 3.984 kB / 0.9035 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.2213, allocations: 19.94 kB / 0.9036 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.306e-05/0.2214, allocations: 7.984 kB / 0.9036 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.2215, allocations: 3.938 kB / 0.9036 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.351e-05/0.2215, allocations: 91.27 kB / 0.9037 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2215, allocations: 0 / 0.9037 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003163/0.2218, allocations: 11.91 kB / 0.9037 GB, free: 60.78 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001109/0.222, allocations: 95.25 kB / 0.9038 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004053/0.2224, allocations: 79.89 kB / 0.9038 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2224, allocations: 0 / 0.9038 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.2226, allocations: 44.22 kB / 0.9039 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.2229, allocations: 8 kB / 0.9039 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003896/0.2233, allocations: 138.8 kB / 0.904 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/0.2235, allocations: 0.6848 MB / 0.9047 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.023e-05/0.2235, allocations: 8 kB / 0.9047 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.2236, allocations: 11.44 kB / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of SimCode: time 7.41e-07/0.2236, allocations: 0 / 0.9047 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of Templates: time 0.003294/0.2269, allocations: 0.5555 MB / 0.9052 GB, free: 59.11 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)