Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001596/0.001596, 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.002425/0.002425, allocations: 209.5 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.539/1.539, 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.041/3.041, allocations: 0.5003 GB / 0.8026 GB, free: 6.922 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.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",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.0022/0.0022, allocations: 67.91 kB / 1.165 GB, free: 0.582 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9642/0.9664, allocations: 178.9 MB / 1.34 GB, free: 16.28 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002004/0.9684, allocations: 0.697 MB / 1.341 GB, free: 15.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001322/0.9697, allocations: 1.115 MB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.103e-05/0.9698, allocations: 0 / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.291e-05/0.9698, allocations: 8.5 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.396e-05/0.9699, allocations: 9.688 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.9701, allocations: 54.33 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.9703, allocations: 65 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.271e-05/0.9704, allocations: 13.7 kB / 1.342 GB, free: 14.93 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.219e-05/0.9704, allocations: 27.33 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.765e-05/0.9705, allocations: 37.08 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.9705, allocations: 6.188 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.902e-05/0.9706, allocations: 27.22 kB / 1.342 GB, free: 14.89 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.159e-05/0.9706, allocations: 9.688 kB / 1.342 GB, free: 14.88 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 4.074e-05/0.9707, allocations: 38.72 kB / 1.342 GB, free: 14.86 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.9708, allocations: 80.89 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.9708, allocations: 1.953 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9708, allocations: 0 / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.9708, allocations: 0 / 1.342 GB, free: 14.82 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005791/0.9714, allocations: 381.2 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.9714, allocations: 9.25 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.484e-05/0.9715, allocations: 14 kB / 1.343 GB, free: 14.44 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.664e-05/0.9715, allocations: 37.75 kB / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.528e-05/0.9716, allocations: 11.81 kB / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.068e-05/0.9717, allocations: 167.6 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.9717, allocations: 7.969 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.9717, allocations: 4.766 kB / 1.343 GB, free: 14.19 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.9719, allocations: 85.81 kB / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.9719, allocations: 0 / 1.343 GB, free: 14.14 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.9719, allocations: 10.89 kB / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.972, allocations: 0 / 1.343 GB, free: 14.13 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.9722, allocations: 55.08 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004911/0.9727, allocations: 306.6 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.9729, allocations: 76.73 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.973, allocations: 37.8 kB / 1.343 GB, free: 13.77 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.973, allocations: 1.312 kB / 1.343 GB, free: 13.77 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002566/0.9733, allocations: 91.33 kB / 1.343 GB, free: 13.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.9733, allocations: 3.938 kB / 1.343 GB, free: 13.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0005283/0.9738, allocations: 176.7 kB / 1.344 GB, free: 13.62 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.9739, allocations: 62.8 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.11e-05/0.9739, allocations: 105.6 kB / 1.344 GB, free: 13.45 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.9739, allocations: 32.72 kB / 1.344 GB, free: 13.42 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.263e-05/0.974, allocations: 86.88 kB / 1.344 GB, free: 13.33 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.974, allocations: 22.56 kB / 1.344 GB, free: 13.31 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.787e-05/0.974, allocations: 35.44 kB / 1.344 GB, free: 13.29 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.9741, allocations: 330.7 kB / 1.344 GB, free: 12.96 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.9742, allocations: 36.56 kB / 1.344 GB, free: 12.95 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.9743, allocations: 64.45 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.9746, allocations: 103.3 kB / 1.345 GB, free: 12.86 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9746, allocations: 0 / 1.345 GB, free: 12.86 MB / 1.061 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002989/0.9749, allocations: 141.9 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.9749, allocations: 5.906 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.9749, allocations: 0.7031 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.9749, allocations: 2.375 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.975, allocations: 23.05 kB / 1.345 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.975, allocations: 5.562 kB / 1.345 GB, free: 12.78 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.082e-05/0.9751, allocations: 19.77 kB / 1.345 GB, free: 12.77 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.9751, allocations: 4.531 kB / 1.345 GB, free: 12.77 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 6.371e-05/0.9752, allocations: 124.3 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.9752, allocations: 16.03 kB / 1.345 GB, free: 12.63 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.9755, allocations: 139.2 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.9755, allocations: 5.984 kB / 1.345 GB, free: 12.57 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.9755, allocations: 4 kB / 1.345 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.9755, allocations: 0.6562 kB / 1.345 GB, free: 12.56 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000444/0.976, allocations: 414.3 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.634e-06/0.976, allocations: 3.938 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.859e-05/0.9761, allocations: 11.25 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.9761, allocations: 0 / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.9761, allocations: 6.641 kB / 1.345 GB, free: 12.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.9761, allocations: 4 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.9761, allocations: 5.922 kB / 1.345 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.9764, allocations: 229.8 kB / 1.346 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.9764, allocations: 88.45 kB / 1.346 GB, free: 11.94 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.9764, allocations: 6.031 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.9765, allocations: 13.3 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.9766, allocations: 9.453 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.9766, allocations: 4.25 kB / 1.346 GB, free: 11.93 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.663e-05/0.9766, allocations: 86.09 kB / 1.346 GB, free: 11.85 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9766, allocations: 0 / 1.346 GB, free: 11.85 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002487/0.9769, allocations: 19.88 kB / 1.346 GB, free: 11.84 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000505/0.9774, allocations: 0.7665 MB / 1.347 GB, free: 11.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.9777, allocations: 94.78 kB / 1.347 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9777, allocations: 0 / 1.347 GB, free: 11.13 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.9778, allocations: 44.56 kB / 1.347 GB, free: 11.12 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002554/0.9781, allocations: 20.08 kB / 1.347 GB, free: 11.11 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.9795, allocations: 1.511 MB / 1.348 GB, free: 9.793 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.9797, allocations: 0.6854 MB / 1.349 GB, free: 9.098 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.796e-05/0.9797, allocations: 10.8 kB / 1.349 GB, free: 9.094 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.9797, allocations: 18.08 kB / 1.349 GB, free: 9.082 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.9797, allocations: 0 / 1.349 GB, free: 9.082 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01967/0.9994, allocations: 2.115 MB / 1.351 GB, free: 8.664 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.696/9.696, allocations: 19.2 kB / 1.351 GB, free: 8.648 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.203693226969335] Failed to read output from testmodel.py, exit status != 0: 9.825583769008517 9.845519085 8.870828634 Calling exit ...