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.001797/0.001797, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002204/0.002204, allocations: 219.6 kB / 23.03 MB, free: 4.941 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.279/3.279, allocations: 0.5003 GB / 0.8062 GB, free: 28.3 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.002068/0.002068, allocations: 67.36 kB / 1.17 GB, free: 19.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.368, allocations: 179 MB / 1.345 GB, free: 15.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001974/0.37, allocations: 0.6581 MB / 1.346 GB, free: 15.32 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001458/0.3714, allocations: 1.089 MB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.3715, allocations: 0 / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.397e-05/0.3715, allocations: 0 / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.35e-05/0.3716, allocations: 15.86 kB / 1.347 GB, free: 14.2 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.3718, allocations: 39.91 kB / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.372, allocations: 51.78 kB / 1.347 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.82e-05/0.372, allocations: 7.984 kB / 1.347 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.507e-05/0.3721, allocations: 23.92 kB / 1.347 GB, free: 14.08 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.156e-05/0.3722, allocations: 23.86 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.3722, allocations: 4 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.019e-05/0.3722, allocations: 23.98 kB / 1.347 GB, free: 14.03 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.456e-05/0.3723, allocations: 11.98 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.3723, allocations: 15.94 kB / 1.347 GB, free: 14 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.3724, allocations: 67.94 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3725, allocations: 0 / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.166e-06/0.3725, allocations: 3.984 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.3725, allocations: 0 / 1.347 GB, free: 13.93 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.0005659/0.373, allocations: 282.2 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3731, allocations: 12.03 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.364e-05/0.3731, allocations: 192 / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.426e-05/0.3731, allocations: 38.73 kB / 1.348 GB, free: 13.56 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.878e-05/0.3732, allocations: 4.938 kB / 1.348 GB, free: 13.56 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.3733, allocations: 118.4 kB / 1.348 GB, free: 13.42 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.3733, allocations: 8.375 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.3733, allocations: 384 / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.3735, allocations: 73.95 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3736, allocations: 0 / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.3736, allocations: 0 / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.3736, allocations: 3.938 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.3738, allocations: 43.95 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004704/0.3742, allocations: 243.9 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.3744, allocations: 50.55 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.987e-05/0.3745, allocations: 28.95 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3745, allocations: 4 kB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.3748, allocations: 79.31 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.503e-06/0.3748, allocations: 4 kB / 1.348 GB, free: 12.82 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0004301/0.3752, allocations: 113.6 kB / 1.348 GB, free: 12.7 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3752, allocations: 55.41 kB / 1.348 GB, free: 12.63 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.3753, allocations: 105.8 kB / 1.348 GB, free: 12.52 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.3754, allocations: 29.64 kB / 1.348 GB, free: 12.48 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.91e-05/0.3754, allocations: 96.08 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.3755, allocations: 23.84 kB / 1.349 GB, free: 12.36 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.105e-05/0.3755, allocations: 25.7 kB / 1.349 GB, free: 12.33 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.3757, allocations: 326.8 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.3758, allocations: 23.97 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3759, allocations: 56.22 kB / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.3761, allocations: 92.19 kB / 1.349 GB, free: 11.8 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3761, allocations: 0 / 1.349 GB, free: 11.8 MB / 1.045 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002924/0.3764, allocations: 109.5 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.3764, allocations: 4 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3764, allocations: 4 kB / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3764, allocations: 0 / 1.349 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3766, allocations: 20.14 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3766, allocations: 4 kB / 1.349 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.3766, allocations: 15.94 kB / 1.349 GB, free: 11.64 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.3767, allocations: 4 kB / 1.349 GB, free: 11.64 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.0001008/0.3768, allocations: 125.7 kB / 1.349 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.3768, allocations: 0 / 1.349 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.3771, allocations: 102 kB / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3771, allocations: 0 / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.3771, allocations: 0 / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3771, allocations: 4 kB / 1.349 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.3776, allocations: 333.4 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3776, allocations: 0 / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.3776, allocations: 7.984 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.3777, allocations: 4 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.3777, allocations: 384 / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3777, allocations: 0 / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3777, allocations: 7.938 kB / 1.35 GB, free: 11 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003037/0.378, allocations: 199.4 kB / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.057e-05/0.378, allocations: 3.953 kB / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.378, allocations: 0 / 1.35 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.542e-05/0.3781, allocations: 7.984 kB / 1.35 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.3781, allocations: 11.94 kB / 1.35 GB, free: 10.77 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.3781, allocations: 0 / 1.35 GB, free: 10.77 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.027e-05/0.3782, allocations: 91.2 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3782, allocations: 0 / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002523/0.3784, allocations: 12 kB / 1.35 GB, free: 10.67 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.0006476/0.3791, allocations: 0.7241 MB / 1.351 GB, free: 9.918 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002704/0.3794, allocations: 68.08 kB / 1.351 GB, free: 9.852 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3794, allocations: 0 / 1.351 GB, free: 9.852 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.3795, allocations: 31.91 kB / 1.351 GB, free: 9.82 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3797, allocations: 16.25 kB / 1.351 GB, free: 9.805 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3815, allocations: 1.414 MB / 1.352 GB, free: 8.285 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.995e-05/0.3816, allocations: 71.34 kB / 1.352 GB, free: 8.195 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.336e-05/0.3816, allocations: 4 kB / 1.352 GB, free: 8.191 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.461e-05/0.3816, allocations: 15.42 kB / 1.352 GB, free: 8.176 MB / 1.045 GB Notification: Performance of SimCode: time 3.8e-07/0.3816, allocations: 0 / 1.352 GB, free: 8.176 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.4048, allocations: 1.999 MB / 1.354 GB, free: 6.324 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.72, allocations: 4.688 kB / 1.354 GB, free: 6.324 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.640091778011993] Failed to read output from testmodel.py, exit status != 0: 11.876484788022935 11.893013743 11.517284837 Calling exit ...