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.001643/0.001643, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.00207/0.00207, allocations: 220.4 kB / 23.04 MB, free: 5.074 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.303/3.303, allocations: 0.5003 GB / 0.8061 GB, free: 26.9 MB / 0.6231 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.002021/0.002021, allocations: 67.95 kB / 1.171 GB, free: 19.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3943, allocations: 179 MB / 1.345 GB, free: 476 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002175/0.3964, allocations: 0.6736 MB / 1.346 GB, free: 15.79 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3981, allocations: 1.108 MB / 1.347 GB, free: 14.67 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.086e-05/0.3982, allocations: 4 kB / 1.347 GB, free: 14.66 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.133e-05/0.3982, allocations: 0 / 1.347 GB, free: 14.66 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.511e-05/0.3983, allocations: 11.86 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.3986, allocations: 35.91 kB / 1.347 GB, free: 14.62 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.3987, allocations: 47.84 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.3988, allocations: 11.98 kB / 1.347 GB, free: 14.56 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.076e-05/0.3989, allocations: 19.92 kB / 1.347 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.122e-05/0.399, allocations: 27.92 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.399, allocations: 4 kB / 1.347 GB, free: 14.51 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.093e-05/0.3991, allocations: 19.98 kB / 1.347 GB, free: 14.49 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.173e-05/0.3991, allocations: 11.92 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.3991, allocations: 23.92 kB / 1.347 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.3993, allocations: 63.94 kB / 1.347 GB, free: 14.39 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3993, allocations: 7.938 kB / 1.347 GB, free: 14.38 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3993, allocations: 0 / 1.347 GB, free: 14.38 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.3993, allocations: 0 / 1.347 GB, free: 14.38 MB / 1.045 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.0005758/0.3999, allocations: 290.2 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3999, allocations: 12.03 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.634e-05/0.3999, allocations: 192 / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.923e-05/0.4, allocations: 30.75 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.942e-05/0.4001, allocations: 8.922 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.4002, allocations: 114.4 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.4002, allocations: 4.375 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.4002, allocations: 4.375 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.4004, allocations: 65.98 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.4004, allocations: 3.938 kB / 1.348 GB, free: 13.79 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.4005, allocations: 7.984 kB / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.4005, allocations: 0 / 1.348 GB, free: 13.78 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.4006, allocations: 43.95 kB / 1.348 GB, free: 13.74 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005126/0.4012, allocations: 255.9 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.4013, allocations: 54.56 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.4014, allocations: 28.95 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.4014, allocations: 3.938 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.4017, allocations: 79.33 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.4017, allocations: 4 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004452/0.4021, allocations: 109.6 kB / 1.348 GB, free: 13.14 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.281e-05/0.4022, allocations: 55.39 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.4023, allocations: 109.8 kB / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.4023, allocations: 37.64 kB / 1.349 GB, free: 12.91 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.346e-05/0.4024, allocations: 88.09 kB / 1.349 GB, free: 12.82 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.4024, allocations: 19.78 kB / 1.349 GB, free: 12.8 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.4025, allocations: 29.7 kB / 1.349 GB, free: 12.77 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4027, allocations: 318.8 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.4028, allocations: 23.97 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.4029, allocations: 60.27 kB / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.4032, allocations: 84.2 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.4032, allocations: 0 / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003175/0.4035, allocations: 117.5 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.4035, allocations: 4 kB / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4035, allocations: 192 / 1.349 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4035, allocations: 4 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.4036, allocations: 19.92 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.4036, allocations: 0 / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.541e-05/0.4037, allocations: 11.94 kB / 1.349 GB, free: 12.09 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.4037, allocations: 12.16 kB / 1.349 GB, free: 12.08 MB / 1.045 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 0.0001187/0.4039, allocations: 121.7 kB / 1.349 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.4039, allocations: 4 kB / 1.349 GB, free: 11.95 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002941/0.4042, allocations: 98.02 kB / 1.35 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.4042, allocations: 0 / 1.35 GB, free: 11.85 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4042, allocations: 4 kB / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4042, allocations: 0 / 1.35 GB, free: 11.84 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005127/0.4047, allocations: 333.8 kB / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4047, allocations: 0 / 1.35 GB, free: 11.47 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.711e-05/0.4048, allocations: 15.98 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4048, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.4048, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4048, allocations: 0 / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.4048, allocations: 3.938 kB / 1.35 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.4051, allocations: 195.4 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.462e-05/0.4051, allocations: 7.953 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.4051, allocations: 0 / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.61e-05/0.4052, allocations: 7.984 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.4053, allocations: 7.938 kB / 1.35 GB, free: 11.22 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-06/0.4053, allocations: 3.984 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.296e-05/0.4054, allocations: 95.34 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4054, allocations: 0 / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002568/0.4056, allocations: 15.94 kB / 1.35 GB, free: 11.11 MB / 1.045 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.0007638/0.4064, allocations: 0.7202 MB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002922/0.4067, allocations: 67.88 kB / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4067, allocations: 0 / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.4068, allocations: 27.98 kB / 1.351 GB, free: 10.27 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.4071, allocations: 13.48 kB / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.409, allocations: 1.423 MB / 1.352 GB, free: 8.727 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.4093, allocations: 0.6807 MB / 1.353 GB, free: 8.02 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.707e-05/0.4094, allocations: 7.984 kB / 1.353 GB, free: 8.012 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.589e-05/0.4094, allocations: 15.44 kB / 1.353 GB, free: 7.996 MB / 1.045 GB Notification: Performance of SimCode: time 5.31e-07/0.4094, allocations: 0 / 1.353 GB, free: 7.996 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.4338, allocations: 1.949 MB / 1.355 GB, free: 6.195 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.64, allocations: 6 kB / 1.355 GB, free: 6.191 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.6604372409638] Failed to read output from testmodel.py, exit status != 0: 11.804781818995252 11.825038848 11.421938199 Calling exit ...