Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001748/0.001748, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.002091/0.002091, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.521/1.521, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.071/3.071, allocations: 0.5003 GB / 0.8026 GB, free: 6.883 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_latest_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.00204/0.00204, allocations: 67.89 kB / 1.165 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.065/1.067, allocations: 178.9 MB / 1.34 GB, free: 16.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001787/1.069, allocations: 0.6729 MB / 1.341 GB, free: 15.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001237/1.07, allocations: 1.105 MB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.687e-05/1.07, allocations: 1.094 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.667e-05/1.07, allocations: 4.594 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/1.071, allocations: 5.656 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/1.071, allocations: 43.17 kB / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/1.071, allocations: 44.67 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.009e-05/1.071, allocations: 13.34 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.253e-05/1.071, allocations: 18.67 kB / 1.342 GB, free: 14.95 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.163e-05/1.071, allocations: 27.16 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/1.071, allocations: 4.312 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.355e-05/1.071, allocations: 29.34 kB / 1.342 GB, free: 14.92 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.747e-05/1.071, allocations: 11.84 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.372e-05/1.071, allocations: 19.19 kB / 1.342 GB, free: 14.9 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001413/1.071, allocations: 65.42 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/1.071, allocations: 0.5625 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.232e-06/1.071, allocations: 1.031 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.811e-06/1.071, allocations: 3.938 kB / 1.342 GB, free: 14.87 MB / 1.061 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.0004725/1.072, allocations: 368 kB / 1.342 GB, free: 14.49 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/1.072, allocations: 10.38 kB / 1.342 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.646e-05/1.072, allocations: 192 / 1.342 GB, free: 14.49 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.358e-05/1.072, allocations: 38.12 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.08e-05/1.072, allocations: 5.328 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.546e-05/1.072, allocations: 167 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/1.072, allocations: 6.812 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/1.072, allocations: 3.938 kB / 1.343 GB, free: 14.24 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001982/1.072, allocations: 74.58 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/1.072, allocations: 0 / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/1.072, allocations: 0 / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/1.072, allocations: 1.812 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/1.073, allocations: 36.64 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000437/1.073, allocations: 292.2 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/1.073, allocations: 62.28 kB / 1.343 GB, free: 13.85 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/1.073, allocations: 27.06 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/1.073, allocations: 2.219 kB / 1.343 GB, free: 13.84 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000214/1.073, allocations: 74.06 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.553e-06/1.073, allocations: 0 / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004299/1.074, allocations: 121.1 kB / 1.343 GB, free: 13.73 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/1.074, allocations: 56.72 kB / 1.343 GB, free: 13.66 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.786e-05/1.074, allocations: 110.8 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/1.074, allocations: 31.59 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/1.074, allocations: 86.58 kB / 1.344 GB, free: 13.43 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/1.074, allocations: 15.91 kB / 1.344 GB, free: 13.42 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/1.074, allocations: 26.83 kB / 1.344 GB, free: 13.4 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.675e-05/1.074, allocations: 321.9 kB / 1.344 GB, free: 13.08 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/1.074, allocations: 24.41 kB / 1.344 GB, free: 13.07 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/1.074, allocations: 56.98 kB / 1.344 GB, free: 13.03 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/1.075, allocations: 88.25 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.075, allocations: 0 / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003028/1.075, allocations: 114.6 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/1.075, allocations: 8.625 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/1.075, allocations: 1.375 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/1.075, allocations: 2.078 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/1.075, allocations: 19.52 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/1.075, allocations: 2.281 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.279e-05/1.075, allocations: 19.34 kB / 1.344 GB, free: 12.89 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/1.075, allocations: 4.156 kB / 1.344 GB, free: 12.89 MB / 1.061 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 (unitDelay1.u_internal,$PRE.unitDelay1.u_internal,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 (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 5.906e-05/1.075, allocations: 122.9 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/1.075, allocations: 2.531 kB / 1.344 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002744/1.076, allocations: 103.2 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/1.076, allocations: 1.797 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/1.076, allocations: 4.062 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/1.076, allocations: 1.5 kB / 1.345 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003871/1.076, allocations: 362.2 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/1.076, allocations: 0.5156 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.559e-05/1.076, allocations: 12.77 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/1.076, allocations: 2.688 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/1.076, allocations: 4 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/1.076, allocations: 0.7031 kB / 1.345 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.076, allocations: 4.875 kB / 1.345 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/1.076, allocations: 186.8 kB / 1.345 GB, free: 12.22 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/1.076, allocations: 83.06 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/1.076, allocations: 2.094 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/1.076, allocations: 9.672 kB / 1.345 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/1.076, allocations: 12.56 kB / 1.345 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/1.076, allocations: 2.047 kB / 1.345 GB, free: 12.11 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.855e-05/1.076, allocations: 91.16 kB / 1.345 GB, free: 12.03 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.076, allocations: 0 / 1.345 GB, free: 12.03 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000252/1.077, allocations: 11.03 kB / 1.345 GB, free: 12.03 MB / 1.061 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.u_internal) * Number of discrete states: 1 (unitDelay1.u_internal) * 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.0004643/1.077, allocations: 0.7243 MB / 1.346 GB, free: 11.35 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002683/1.077, allocations: 70.28 kB / 1.346 GB, free: 11.33 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.077, allocations: 1.375 kB / 1.346 GB, free: 11.33 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/1.078, allocations: 26.73 kB / 1.346 GB, free: 11.33 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/1.078, allocations: 13.83 kB / 1.346 GB, free: 11.32 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/1.079, allocations: 1.425 MB / 1.347 GB, free: 10.01 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/1.079, allocations: 0.6871 MB / 1.348 GB, free: 9.309 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.951e-05/1.079, allocations: 4.203 kB / 1.348 GB, free: 9.309 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/1.079, allocations: 15.64 kB / 1.348 GB, free: 9.297 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/1.079, allocations: 1.375 kB / 1.348 GB, free: 9.297 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01844/1.098, allocations: 1.827 MB / 1.35 GB, free: 8.887 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.36/9.458, allocations: 10.17 kB / 1.35 GB, free: 8.883 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.078662219981197] Failed to read output from testmodel.py, exit status != 0: 9.583335569011979 9.603020642 8.528053698 Calling exit ...