Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001811/0.001811, allocations: 97.92 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.00226/0.00226, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.271/3.271, allocations: 0.49 GB / 0.7959 GB, free: 35.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,fileNamePrefix="Buildings_12_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.002072/0.002072, allocations: 63.72 kB / 1.155 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3909, allocations: 176.1 MB / 1.327 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.002255/0.3932, allocations: 0.6612 MB / 1.327 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001664/0.3949, allocations: 1.081 MB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.603e-05/0.3949, allocations: 0 / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.658e-05/0.3949, allocations: 11.88 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.103e-05/0.395, allocations: 3.938 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.3953, allocations: 51.83 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.3954, allocations: 47.91 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.91e-05/0.3955, allocations: 4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.066e-05/0.3956, allocations: 27.86 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.203e-05/0.3957, allocations: 19.91 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.3957, allocations: 4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.469e-05/0.3958, allocations: 19.98 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.818e-05/0.3958, allocations: 19.92 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.3958, allocations: 19.88 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.396, allocations: 60.06 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.396, allocations: 0 / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.823e-06/0.396, allocations: 0 / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.396, allocations: 0 / 1.329 GB, free: 15.49 MB / 1.029 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.0005132/0.3965, allocations: 290.2 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3965, allocations: 8.031 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.305e-05/0.3966, allocations: 8.172 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.3966, allocations: 34.73 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.605e-05/0.3967, allocations: 4.938 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.3968, allocations: 122.4 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3968, allocations: 4.375 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.3968, allocations: 4.375 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.397, allocations: 69.95 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.397, allocations: 3.938 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.397, allocations: 0 / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.397, allocations: 4 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.3972, allocations: 39.95 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.3977, allocations: 247.9 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3979, allocations: 50.55 kB / 1.329 GB, free: 14.49 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.959e-05/0.398, allocations: 28.95 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.398, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.3982, allocations: 71.39 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3982, allocations: 0 / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004288/0.3986, allocations: 129.5 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3987, allocations: 51.41 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3988, allocations: 105.8 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.3988, allocations: 29.7 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.3989, allocations: 88.12 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.3989, allocations: 19.84 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.3989, allocations: 21.72 kB / 1.33 GB, free: 13.9 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3991, allocations: 322.8 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.3992, allocations: 27.98 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.3993, allocations: 60.2 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.3995, allocations: 88.19 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3995, allocations: 192 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002756/0.3998, allocations: 113.5 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3998, allocations: 11.94 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.3998, allocations: 0 / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.3999, allocations: 4 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.4, allocations: 16.17 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4, allocations: 4 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.264e-05/0.4001, allocations: 16.14 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.4001, allocations: 4 kB / 1.331 GB, free: 13.2 MB / 1.029 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.0001026/0.4002, allocations: 120.6 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.4002, allocations: 11.94 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.4005, allocations: 102 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.4005, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4005, allocations: 4 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4005, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.4009, allocations: 333.5 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4009, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.191e-05/0.401, allocations: 11.98 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.401, allocations: 0 / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.401, allocations: 0 / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.401, allocations: 0 / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.401, allocations: 3.938 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.4013, allocations: 191.5 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.517e-06/0.4013, allocations: 7.984 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.4013, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/0.4014, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/0.4015, allocations: 15.86 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.4015, allocations: 4 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.973e-05/0.4015, allocations: 87.27 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4015, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000254/0.4018, allocations: 15.95 kB / 1.331 GB, free: 12.22 MB / 1.029 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.0006483/0.4024, allocations: 0.7244 MB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002583/0.4027, allocations: 63.89 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.4027, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.4028, allocations: 35.91 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.4031, allocations: 15.88 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/0.4048, allocations: 1.409 MB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.976e-05/0.4049, allocations: 71.25 kB / 1.334 GB, free: 9.754 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.315e-05/0.4049, allocations: 4 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.102e-05/0.4049, allocations: 23.42 kB / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.4049, allocations: 0 / 1.334 GB, free: 9.727 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.4284, allocations: 1.982 MB / 1.336 GB, free: 7.902 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.98, allocations: 8.828 kB / 1.336 GB, free: 7.898 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_UnitDelay.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.87302701396402] Failed to read output from testmodel.py, exit status != 0: 12.147330116014928 12.176945175 11.775212893 Calling exit ...