Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.724/1.724, allocations: 288.2 MB / 303.2 MB, free: 8.164 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.0009958/0.0009958, allocations: 180.4 kB / 371.8 MB, free: 10.31 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.58/1.58, allocations: 205.4 MB / 0.6305 GB, free: 10.05 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.0009475/0.0009474, allocations: 97.11 kB / 0.7439 GB, free: 5.984 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004271/0.0004272, allocations: 15.47 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2517, allocations: 115.3 MB / 0.9795 GB, free: 27.64 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8957/1.147, allocations: 138 MB / 1.114 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/1.148, allocations: 68.25 kB / 1.114 GB, free: 16.45 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00386/1.152, allocations: 1.041 MB / 1.115 GB, free: 32.11 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.494e-06/1.152, allocations: 4 kB / 1.115 GB, free: 32.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.598e-06/1.152, allocations: 0 / 1.115 GB, free: 32.1 MB / 0.698 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.0005515/1.152, allocations: 373.9 kB / 1.116 GB, free: 31.73 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/1.152, allocations: 15.73 kB / 1.116 GB, free: 31.73 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.965e-05/1.152, allocations: 30.56 kB / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.665e-05/1.152, allocations: 0 / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/1.153, allocations: 179.5 kB / 1.116 GB, free: 31.48 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/1.153, allocations: 6.531 kB / 1.116 GB, free: 31.48 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/1.153, allocations: 7.219 kB / 1.116 GB, free: 31.48 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002014/1.153, allocations: 64.59 kB / 1.116 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/1.153, allocations: 0 / 1.116 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/1.153, allocations: 2 kB / 1.116 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/1.153, allocations: 3.594 kB / 1.116 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001685/1.153, allocations: 52.39 kB / 1.116 GB, free: 31.44 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/1.154, allocations: 273.9 kB / 1.116 GB, free: 31.17 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/1.154, allocations: 55.2 kB / 1.116 GB, free: 31.14 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/1.154, allocations: 3.812 kB / 1.116 GB, free: 31.14 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/1.154, allocations: 70.06 kB / 1.116 GB, free: 31.09 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 2.474e-06/1.154, allocations: 4 kB / 1.116 GB, free: 31.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0003903/1.154, allocations: 118.5 kB / 1.116 GB, free: 31.05 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.154, allocations: 57.73 kB / 1.117 GB, free: 30.99 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.217e-05/1.155, allocations: 106.5 kB / 1.117 GB, free: 30.89 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/1.155, allocations: 25.7 kB / 1.117 GB, free: 30.86 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.519e-05/1.155, allocations: 87.33 kB / 1.117 GB, free: 30.78 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/1.155, allocations: 17.22 kB / 1.117 GB, free: 30.77 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/1.155, allocations: 3.844 kB / 1.117 GB, free: 30.77 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001203/1.155, allocations: 319.4 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.251e-05/1.155, allocations: 28.42 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/1.155, allocations: 60.02 kB / 1.117 GB, free: 30.42 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.554e-05/1.155, allocations: 31.95 kB / 1.117 GB, free: 30.41 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/1.155, allocations: 0 / 1.117 GB, free: 30.41 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002319/1.155, allocations: 106.9 kB / 1.117 GB, free: 30.38 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.155, allocations: 11.81 kB / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/1.155, allocations: 0 / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.155, allocations: 3.844 kB / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/1.155, allocations: 14.12 kB / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/1.155, allocations: 0 / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.862e-05/1.156, allocations: 17.25 kB / 1.117 GB, free: 30.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/1.156, allocations: 3.938 kB / 1.117 GB, free: 30.37 MB / 0.698 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 0.0001003/1.156, allocations: 123.5 kB / 1.117 GB, free: 30.25 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/1.156, allocations: 7.781 kB / 1.117 GB, free: 30.24 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/1.156, allocations: 103.5 kB / 1.118 GB, free: 30.21 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/1.156, allocations: 3.938 kB / 1.118 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/1.156, allocations: 4 kB / 1.118 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/1.156, allocations: 0 / 1.118 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003812/1.156, allocations: 351.5 kB / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.156, allocations: 0 / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.906e-05/1.156, allocations: 18.11 kB / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/1.156, allocations: 0 / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/1.157, allocations: 0 / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/1.157, allocations: 0 / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/1.157, allocations: 0 / 1.118 GB, free: 29.89 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/1.157, allocations: 201.6 kB / 1.118 GB, free: 29.75 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.307e-05/1.157, allocations: 77.11 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/1.157, allocations: 0 / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.099e-05/1.157, allocations: 10.73 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/1.157, allocations: 9.953 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/1.157, allocations: 3.938 kB / 1.118 GB, free: 29.65 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.491e-05/1.157, allocations: 85.31 kB / 1.118 GB, free: 29.58 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.21e-07/1.157, allocations: 4 kB / 1.118 GB, free: 29.57 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002497/1.157, allocations: 15.56 kB / 1.118 GB, free: 29.57 MB / 0.698 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.0005957/1.158, allocations: 0.7331 MB / 1.119 GB, free: 28.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002285/1.158, allocations: 69.45 kB / 1.119 GB, free: 28.89 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/1.158, allocations: 4.25 kB / 1.119 GB, free: 28.89 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.751e-05/1.158, allocations: 35.14 kB / 1.119 GB, free: 28.89 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/1.158, allocations: 10.92 kB / 1.119 GB, free: 28.89 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006761/1.159, allocations: 0.811 MB / 1.12 GB, free: 28.07 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/1.159, allocations: 0.6906 MB / 1.121 GB, free: 27.38 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.967e-05/1.159, allocations: 0 / 1.121 GB, free: 27.38 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/1.159, allocations: 16.33 kB / 1.121 GB, free: 27.37 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/1.159, allocations: 0 / 1.121 GB, free: 27.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/1.172, allocations: 1.413 MB / 1.122 GB, free: 27.21 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/1.173, allocations: 187.4 kB / 1.122 GB, free: 26.97 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.815, allocations: 0 / 1.122 GB, free: 26.97 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)