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.564/1.564, allocations: 249.3 MB / 261.8 MB, free: 6.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.911/1.911, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0009416/0.0009416, allocations: 98.45 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.775e-05/3.777e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2229, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.806/1.029, allocations: 131.6 MB / 1.02 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/1.029, allocations: 72.2 kB / 1.02 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002517/1.032, allocations: 0.8603 MB / 1.021 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.114e-06/1.032, allocations: 0 / 1.021 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.586e-06/1.032, allocations: 4 kB / 1.021 GB, free: 2.32 MB / 0.6355 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.0004905/1.032, allocations: 362 kB / 1.022 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/1.032, allocations: 8.031 kB / 1.022 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/1.032, allocations: 38.3 kB / 1.022 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/1.033, allocations: 7.906 kB / 1.022 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/1.033, allocations: 167 kB / 1.022 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/1.033, allocations: 4 kB / 1.022 GB, free: 1.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/1.033, allocations: 4 kB / 1.022 GB, free: 1.656 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/1.033, allocations: 54.19 kB / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/1.033, allocations: 0 / 1.022 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/1.033, allocations: 4 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/1.033, allocations: 0 / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.285e-05/1.033, allocations: 19.8 kB / 1.022 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/1.033, allocations: 272.9 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.722e-05/1.034, allocations: 52.56 kB / 1.022 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.926e-05/1.034, allocations: 21.58 kB / 1.022 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/1.034, allocations: 8.062 kB / 1.022 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/1.034, allocations: 58.19 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/1.034, allocations: 2.734 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.000193/1.034, allocations: 72.88 kB / 1.022 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/1.034, allocations: 59.34 kB / 1.022 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.585e-05/1.034, allocations: 100.6 kB / 1.023 GB, free: 0.9102 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/1.034, allocations: 29.14 kB / 1.023 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/1.034, allocations: 84.14 kB / 1.023 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/1.034, allocations: 15.67 kB / 1.023 GB, free: 0.7812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-06/1.034, allocations: 4 kB / 1.023 GB, free: 0.7773 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001195/1.034, allocations: 314.7 kB / 1.023 GB, free: 476 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.011e-05/1.034, allocations: 11.75 kB / 1.023 GB, free: 468 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.999e-05/1.034, allocations: 50.73 kB / 1.023 GB, free: 408 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.023e-05/1.035, allocations: 15.55 kB / 1.023 GB, free: 396 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/1.035, allocations: 3.938 kB / 1.023 GB, free: 392 kB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001375/1.035, allocations: 84.22 kB / 1.023 GB, free: 312 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/1.035, allocations: 8.031 kB / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/1.035, allocations: 0 / 1.023 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/1.035, allocations: 4 kB / 1.023 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/1.035, allocations: 23.23 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/1.035, allocations: 0 / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.345e-05/1.035, allocations: 19.88 kB / 1.023 GB, free: 260 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.467e-06/1.035, allocations: 4 kB / 1.023 GB, free: 256 kB / 0.6355 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 () * 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.399e-05/1.035, allocations: 112.9 kB / 1.023 GB, free: 140 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/1.035, allocations: 3.906 kB / 1.023 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001606/1.035, allocations: 81.86 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/1.035, allocations: 0 / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/1.035, allocations: 4.812 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.175e-06/1.035, allocations: 0 / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003386/1.036, allocations: 324 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/1.036, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.28e-05/1.036, allocations: 20.11 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/1.036, allocations: 8 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/1.036, allocations: 3.625 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.036, allocations: 0 / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.036, allocations: 3.953 kB / 1.024 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/1.036, allocations: 161.9 kB / 1.024 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/1.036, allocations: 81.09 kB / 1.024 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/1.036, allocations: 11.98 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/1.036, allocations: 11.38 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.454e-05/1.036, allocations: 7.938 kB / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/1.036, allocations: 4 kB / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.45e-05/1.036, allocations: 84.23 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.036, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000212/1.036, allocations: 8 kB / 1.024 GB, free: 15.29 MB / 0.6511 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) * 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.0004574/1.037, allocations: 0.7105 MB / 1.025 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001234/1.037, allocations: 36.94 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.037, allocations: 4 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.639e-05/1.037, allocations: 19.67 kB / 1.025 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/1.037, allocations: 16.31 kB / 1.025 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003864/1.038, allocations: 118.9 kB / 1.025 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/1.038, allocations: 0.6848 MB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.229e-05/1.038, allocations: 4.172 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/1.038, allocations: 18.38 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of SimCode: time 3.61e-07/1.038, allocations: 0 / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/1.05, allocations: 1.362 MB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/1.05, allocations: 178.9 kB / 1.027 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.538/2.588, allocations: 0 / 1.027 GB, free: 12.15 MB / 0.6511 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)