Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.493/1.493, allocations: 252 MB / 267.3 MB, free: 10.83 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001207/0.001208, allocations: 180.7 kB / 327 MB, free: 2.062 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 0.578 GB, free: 20.05 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007771/0.000777, allocations: 105.8 kB / 0.6826 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003296, allocations: 9.438 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2301, allocations: 106.4 MB / 0.9009 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001562/0.2318, allocations: 1.108 MB / 0.902 GB, free: 62.08 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004044/0.2322, allocations: 220.2 kB / 0.9022 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.447e-05/0.2322, allocations: 4 kB / 0.9022 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.035e-05/0.2323, allocations: 3.938 kB / 0.9022 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.314e-05/0.2323, allocations: 3.984 kB / 0.9022 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001717/0.2325, allocations: 23.92 kB / 0.9023 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.629e-05/0.2326, allocations: 43.86 kB / 0.9023 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.832e-05/0.2327, allocations: 15.98 kB / 0.9023 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.575e-05/0.2328, allocations: 15.92 kB / 0.9023 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.555e-05/0.2328, allocations: 23.91 kB / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.2328, allocations: 0 / 0.9023 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.092e-05/0.2329, allocations: 4 kB / 0.9024 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.537e-05/0.2329, allocations: 0 / 0.9024 GB, free: 61.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.251e-05/0.233, allocations: 45.56 kB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.287e-05/0.233, allocations: 47.86 kB / 0.9024 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2331, allocations: 0 / 0.9024 GB, free: 61.63 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2331, allocations: 4 kB / 0.9024 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.2331, allocations: 0 / 0.9024 GB, free: 61.62 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.0004819/0.2336, allocations: 367.6 kB / 0.9028 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.2336, allocations: 8.031 kB / 0.9028 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.4e-05/0.2337, allocations: 30.75 kB / 0.9028 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.256e-05/0.2337, allocations: 8.938 kB / 0.9028 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.513e-05/0.2338, allocations: 168.3 kB / 0.903 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.2338, allocations: 4.375 kB / 0.903 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.2338, allocations: 4.375 kB / 0.903 GB, free: 60.95 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001836/0.234, allocations: 66.22 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.234, allocations: 7.875 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.234, allocations: 4 kB / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.234, allocations: 0 / 0.9031 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.2342, allocations: 55.89 kB / 0.9031 GB, free: 60.81 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.2346, allocations: 288.8 kB / 0.9034 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.2347, allocations: 62.55 kB / 0.9035 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.04e-05/0.2348, allocations: 36.97 kB / 0.9035 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.2349, allocations: 4 kB / 0.9035 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001834/0.2351, allocations: 83.31 kB / 0.9036 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.2351, allocations: 0 / 0.9036 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003714/0.2354, allocations: 137.5 kB / 0.9037 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.2355, allocations: 51.41 kB / 0.9038 GB, free: 60.07 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.752e-05/0.2356, allocations: 109.8 kB / 0.9039 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.2356, allocations: 25.7 kB / 0.9039 GB, free: 59.92 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.147e-05/0.2356, allocations: 84.14 kB / 0.904 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.2356, allocations: 23.75 kB / 0.904 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.118e-06/0.2356, allocations: 0 / 0.904 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.972e-05/0.2357, allocations: 322.8 kB / 0.9043 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.767e-05/0.2358, allocations: 27.98 kB / 0.9043 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.2359, allocations: 64.27 kB / 0.9044 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.2361, allocations: 100.2 kB / 0.9045 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2361, allocations: 0 / 0.9045 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002202/0.2363, allocations: 121.5 kB / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2363, allocations: 4 kB / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2364, allocations: 4 kB / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.2364, allocations: 0 / 0.9046 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.172e-05/0.2365, allocations: 15.98 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.2365, allocations: 4 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.2366, allocations: 20.05 kB / 0.9047 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.2366, allocations: 0 / 0.9047 GB, free: 59.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.501e-05/0.2366, allocations: 127.3 kB / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.2367, allocations: 4 kB / 0.9048 GB, free: 58.96 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002607/0.2369, allocations: 114 kB / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2369, allocations: 3.984 kB / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.2369, allocations: 0 / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.237, allocations: 3.984 kB / 0.9049 GB, free: 58.84 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.2373, allocations: 366.3 kB / 0.9052 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2373, allocations: 3.984 kB / 0.9053 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.507e-05/0.2374, allocations: 8 kB / 0.9053 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2374, allocations: 0 / 0.9053 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.2374, allocations: 4 kB / 0.9053 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2374, allocations: 4.375 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2374, allocations: 3.984 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.2376, allocations: 203.4 kB / 0.9055 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.2377, allocations: 81.02 kB / 0.9055 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.2377, allocations: 4 kB / 0.9055 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.2378, allocations: 20.17 kB / 0.9056 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.2378, allocations: 7.922 kB / 0.9056 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.233e-06/0.2379, allocations: 7.938 kB / 0.9056 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.681e-05/0.2379, allocations: 83.28 kB / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2379, allocations: 0 / 0.9057 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002056/0.2381, allocations: 11.98 kB / 0.9057 GB, free: 57.95 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 (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.0004054/0.2385, allocations: 0.7319 MB / 0.9064 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002231/0.2387, allocations: 79.89 kB / 0.9065 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2388, allocations: 0 / 0.9065 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.775e-05/0.2389, allocations: 36.05 kB / 0.9065 GB, free: 57.08 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.2391, allocations: 11.92 kB / 0.9065 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.2403, allocations: 1.441 MB / 0.9079 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2404, allocations: 0.6809 MB / 0.9086 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.78e-05/0.2405, allocations: 4 kB / 0.9086 GB, free: 54.81 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.2405, allocations: 19.36 kB / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2405, allocations: 4 kB / 0.9086 GB, free: 54.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01119/0.2517, allocations: 1.368 MB / 0.9099 GB, free: 53.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/0.252, allocations: 216.4 kB / 0.9101 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.021, allocations: 3.938 kB / 0.9102 GB, free: 53.31 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)