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.001752/0.001752, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.001908/0.001908, allocations: 220 kB / 23.04 MB, free: 5.078 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.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 8.031 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.253/3.253, allocations: 0.49 GB / 0.7959 GB, free: 33.53 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.001958/0.001958, allocations: 60.56 kB / 1.155 GB, free: 25.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.4002, allocations: 176.1 MB / 1.327 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001997/0.4022, allocations: 0.6787 MB / 1.327 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.4037, allocations: 1.12 MB / 1.328 GB, free: 168 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.69e-05/0.4037, allocations: 0 / 1.328 GB, free: 168 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.917e-05/0.4038, allocations: 3.938 kB / 1.328 GB, free: 164 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.357e-05/0.4038, allocations: 7.938 kB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.4041, allocations: 47.83 kB / 1.328 GB, free: 108 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.278e-05/0.4042, allocations: 43.91 kB / 1.328 GB, free: 64 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 8.926e-05/0.4043, allocations: 8 kB / 1.329 GB, free: 56 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 6.355e-05/0.4043, allocations: 23.92 kB / 1.329 GB, free: 32 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.944e-05/0.4044, allocations: 19.91 kB / 1.329 GB, free: 12 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.4044, allocations: 4 kB / 1.329 GB, free: 8 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.639e-05/0.4045, allocations: 27.98 kB / 1.329 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.4045, allocations: 19.86 kB / 1.329 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.413e-05/0.4045, allocations: 11.94 kB / 1.329 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001361/0.4047, allocations: 64 kB / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4047, allocations: 0 / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.062e-06/0.4047, allocations: 0 / 1.329 GB, free: 15.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.4047, allocations: 0 / 1.329 GB, free: 15.89 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.0005689/0.4053, allocations: 290.2 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.4053, allocations: 8.031 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.742e-05/0.4053, allocations: 8.188 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.163e-05/0.4054, allocations: 38.73 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.622e-05/0.4054, allocations: 4.938 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.4055, allocations: 118.4 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-06/0.4055, allocations: 384 / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.4056, allocations: 8.375 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.4058, allocations: 65.91 kB / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.4058, allocations: 0 / 1.329 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.4058, allocations: 4 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.4058, allocations: 4 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001848/0.406, allocations: 39.95 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004551/0.4064, allocations: 251.9 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.4066, allocations: 58.48 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.4067, allocations: 24.97 kB / 1.33 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.4067, allocations: 0 / 1.33 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.4069, allocations: 71.38 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.4069, allocations: 0 / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0004084/0.4073, allocations: 125.7 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.4074, allocations: 59.41 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.907e-05/0.4075, allocations: 105.8 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.4075, allocations: 29.64 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.418e-05/0.4075, allocations: 88.14 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.4076, allocations: 23.84 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.667e-05/0.4076, allocations: 25.7 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.4078, allocations: 322.8 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.4079, allocations: 27.97 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.408, allocations: 56.33 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.4082, allocations: 88.2 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4082, allocations: 4 kB / 1.331 GB, free: 13.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002806/0.4085, allocations: 113.6 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.4085, allocations: 8 kB / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4085, allocations: 0 / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.4085, allocations: 0 / 1.331 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.4087, allocations: 19.98 kB / 1.331 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.4087, allocations: 7.938 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.798e-05/0.4087, allocations: 7.984 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.4088, allocations: 4 kB / 1.331 GB, free: 13.59 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 9.608e-05/0.4089, allocations: 122.3 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.285e-05/0.4089, allocations: 3.953 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000313/0.4092, allocations: 106 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.4092, allocations: 3.984 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.4092, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.4092, allocations: 0 / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004816/0.4097, allocations: 325.5 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.4097, allocations: 0 / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.233e-05/0.4097, allocations: 7.984 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.4097, allocations: 7.984 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.4098, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.4098, allocations: 3.938 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4098, allocations: 4.25 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.4101, allocations: 195.6 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.4101, allocations: 4.062 kB / 1.331 GB, free: 12.74 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.4101, allocations: 4 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.448e-05/0.4102, allocations: 7.984 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.4102, allocations: 11.92 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.4102, allocations: 4 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.068e-05/0.4103, allocations: 91.2 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4103, allocations: 0 / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000249/0.4105, allocations: 20.14 kB / 1.332 GB, free: 12.6 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.0006573/0.4112, allocations: 0.728 MB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002606/0.4115, allocations: 67.89 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4115, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.4116, allocations: 23.98 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.4118, allocations: 15.92 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.4137, allocations: 1.408 MB / 1.334 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.414, allocations: 0.6846 MB / 1.334 GB, free: 9.523 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.463e-05/0.4141, allocations: 7.984 kB / 1.334 GB, free: 9.516 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.4141, allocations: 19.38 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.4141, allocations: 0 / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/0.4364, allocations: 1.944 MB / 1.336 GB, free: 7.703 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.63, allocations: 0 / 1.336 GB, free: 7.703 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.556422568974085] Failed to read output from testmodel.py, exit status != 0: 11.79430956201395 11.824811762 11.414671775 Calling exit ...