Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002081/0.002081, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.545/1.545, allocations: 230.6 MB / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.919/2.919, allocations: 476.7 MB / 0.7678 GB, free: 9.359 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003301/0.003301, allocations: 63.91 kB / 1.113 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048/1.051, allocations: 169.9 MB / 1.279 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001994/1.053, allocations: 0.6668 MB / 1.28 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00163/1.055, allocations: 1.11 MB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.219e-05/1.055, allocations: 1.094 kB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.263e-05/1.055, allocations: 0 / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.375e-05/1.055, allocations: 9.75 kB / 1.281 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/1.055, allocations: 38.03 kB / 1.281 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/1.055, allocations: 46.58 kB / 1.281 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.965e-05/1.056, allocations: 5.375 kB / 1.281 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.238e-05/1.056, allocations: 22.36 kB / 1.281 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.166e-05/1.056, allocations: 26.05 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/1.056, allocations: 3.281 kB / 1.281 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.57e-05/1.056, allocations: 20.66 kB / 1.281 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.851e-05/1.056, allocations: 12.17 kB / 1.281 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.703e-05/1.056, allocations: 21.77 kB / 1.281 GB, free: 10.38 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001656/1.056, allocations: 56.42 kB / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.056, allocations: 0 / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.473e-06/1.056, allocations: 0 / 1.281 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.001e-05/1.056, allocations: 1.312 kB / 1.281 GB, free: 10.36 MB / 0.9981 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.0006225/1.057, allocations: 365.2 kB / 1.281 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/1.057, allocations: 10.34 kB / 1.281 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.358e-05/1.057, allocations: 192 / 1.281 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/1.057, allocations: 36.86 kB / 1.281 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.992e-05/1.057, allocations: 8.578 kB / 1.281 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/1.057, allocations: 168.9 kB / 1.281 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/1.057, allocations: 1.469 kB / 1.281 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/1.057, allocations: 3.312 kB / 1.281 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/1.057, allocations: 63.05 kB / 1.282 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/1.057, allocations: 4.719 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/1.057, allocations: 0 / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/1.057, allocations: 1.781 kB / 1.282 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/1.057, allocations: 39.72 kB / 1.282 GB, free: 9.68 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/1.058, allocations: 281.4 kB / 1.282 GB, free: 9.391 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/1.058, allocations: 46.03 kB / 1.282 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/1.058, allocations: 24.95 kB / 1.282 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/1.058, allocations: 1.219 kB / 1.282 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/1.059, allocations: 76.89 kB / 1.282 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.273e-06/1.059, allocations: 0 / 1.282 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.0004804/1.059, allocations: 108 kB / 1.282 GB, free: 9.234 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/1.059, allocations: 53 kB / 1.282 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/1.059, allocations: 110.4 kB / 1.282 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/1.059, allocations: 26.2 kB / 1.282 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.065e-05/1.059, allocations: 90.53 kB / 1.282 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.408e-05/1.059, allocations: 11.91 kB / 1.282 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.273e-05/1.059, allocations: 25.02 kB / 1.282 GB, free: 8.914 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001682/1.059, allocations: 321.7 kB / 1.283 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/1.06, allocations: 23.14 kB / 1.283 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/1.06, allocations: 49.38 kB / 1.283 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/1.06, allocations: 78.08 kB / 1.283 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.06, allocations: 0.5 kB / 1.283 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000322/1.06, allocations: 95.83 kB / 1.283 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/1.06, allocations: 9.781 kB / 1.283 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/1.06, allocations: 1.641 kB / 1.283 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/1.06, allocations: 1.531 kB / 1.283 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/1.06, allocations: 13.03 kB / 1.283 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/1.06, allocations: 6.172 kB / 1.283 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/1.061, allocations: 11.17 kB / 1.283 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/1.061, allocations: 3 kB / 1.283 GB, free: 8.441 MB / 0.9981 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.061, allocations: 128.2 kB / 1.283 GB, free: 8.312 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.463e-05/1.061, allocations: 6.141 kB / 1.283 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002916/1.061, allocations: 89.17 kB / 1.283 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.061, allocations: 1.281 kB / 1.283 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/1.061, allocations: 0 / 1.283 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/1.061, allocations: 0.6562 kB / 1.283 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004747/1.061, allocations: 345.6 kB / 1.284 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.061, allocations: 4 kB / 1.284 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.107e-05/1.062, allocations: 10.62 kB / 1.284 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/1.062, allocations: 0.6094 kB / 1.284 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/1.062, allocations: 9.25 kB / 1.284 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.062, allocations: 0.7969 kB / 1.284 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/1.062, allocations: 4.406 kB / 1.284 GB, free: 7.914 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/1.062, allocations: 192.1 kB / 1.284 GB, free: 7.758 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.05e-05/1.062, allocations: 82.88 kB / 1.284 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/1.062, allocations: 1.062 kB / 1.284 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-05/1.062, allocations: 6.938 kB / 1.284 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/1.062, allocations: 7.422 kB / 1.284 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/1.062, allocations: 1.312 kB / 1.284 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.872e-05/1.062, allocations: 95.56 kB / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.062, allocations: 0 / 1.284 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002413/1.062, allocations: 9.266 kB / 1.284 GB, free: 7.57 MB / 0.9981 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 (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.0007138/1.063, allocations: 0.7216 MB / 1.285 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002802/1.063, allocations: 56.72 kB / 1.285 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/1.063, allocations: 0 / 1.285 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/1.063, allocations: 28.8 kB / 1.285 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/1.064, allocations: 13.88 kB / 1.285 GB, free: 6.867 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/1.066, allocations: 1.37 MB / 1.286 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/1.066, allocations: 0.685 MB / 1.287 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.168e-05/1.066, allocations: 8.422 kB / 1.287 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.208e-05/1.066, allocations: 15.08 kB / 1.287 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/1.066, allocations: 0 / 1.287 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/1.087, allocations: 1.773 MB / 1.289 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.498/9.585, allocations: 12.53 kB / 1.289 GB, free: 4.445 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 16.072025478002615] Failed to read output from testmodel.py, exit status != 0: 9.73673109500669 9.760824359 8.699916177 Calling exit ...