Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.001859/0.001859, allocations: 115.4 kB / 17.16 MB, free: 5.895 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.002288/0.002288, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.54/1.54, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.114/3.114, allocations: 0.5003 GB / 0.8026 GB, free: 6.75 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.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",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.00202/0.00202, allocations: 64.19 kB / 1.165 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9543/0.9563, allocations: 178.9 MB / 1.34 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002258/0.9586, allocations: 0.7413 MB / 1.341 GB, free: 13.21 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00174/0.9603, allocations: 1.235 MB / 1.342 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.223e-05/0.9604, allocations: 1.531 kB / 1.342 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.465e-05/0.9604, allocations: 3.938 kB / 1.342 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.9605, allocations: 17.14 kB / 1.342 GB, free: 12.2 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000574/0.9611, allocations: 146 kB / 1.342 GB, free: 12.11 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.9612, allocations: 121.2 kB / 1.342 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.9614, allocations: 11.67 kB / 1.342 GB, free: 12.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/0.9615, allocations: 49.5 kB / 1.342 GB, free: 12 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.9616, allocations: 47.2 kB / 1.342 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.955e-05/0.9616, allocations: 11.12 kB / 1.342 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.338e-05/0.9617, allocations: 26.55 kB / 1.342 GB, free: 11.96 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.174e-05/0.9618, allocations: 11.55 kB / 1.342 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.623e-05/0.9618, allocations: 39.73 kB / 1.343 GB, free: 11.92 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.9621, allocations: 120.7 kB / 1.343 GB, free: 11.83 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.9621, allocations: 0 / 1.343 GB, free: 11.83 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.295e-06/0.9621, allocations: 0 / 1.343 GB, free: 11.83 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.9621, allocations: 5.406 kB / 1.343 GB, free: 11.83 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.0007101/0.9628, allocations: 412 kB / 1.343 GB, free: 11.4 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.9628, allocations: 13.28 kB / 1.343 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.209e-05/0.9629, allocations: 2.156 kB / 1.343 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.9629, allocations: 31.97 kB / 1.343 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.963, allocations: 10.58 kB / 1.343 GB, free: 11.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.9631, allocations: 171.7 kB / 1.343 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.9632, allocations: 7.656 kB / 1.343 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.36e-05/0.9632, allocations: 10.91 kB / 1.343 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.9634, allocations: 67.22 kB / 1.343 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.9634, allocations: 1.125 kB / 1.343 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.9634, allocations: 0 / 1.343 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.9634, allocations: 1.406 kB / 1.343 GB, free: 11.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.9636, allocations: 39.23 kB / 1.343 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.9642, allocations: 337.2 kB / 1.344 GB, free: 10.72 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.9644, allocations: 44.39 kB / 1.344 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.9645, allocations: 29.7 kB / 1.344 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.926e-05/0.9645, allocations: 1.156 kB / 1.344 GB, free: 10.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.9648, allocations: 94.66 kB / 1.344 GB, free: 10.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.804e-06/0.9648, allocations: 3.938 kB / 1.344 GB, free: 10.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004856/0.9653, allocations: 132.7 kB / 1.344 GB, free: 10.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.9653, allocations: 57.78 kB / 1.344 GB, free: 10.44 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.9654, allocations: 116.8 kB / 1.344 GB, free: 10.32 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.9655, allocations: 27.98 kB / 1.344 GB, free: 10.29 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.9656, allocations: 99.98 kB / 1.344 GB, free: 10.2 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.9656, allocations: 14.09 kB / 1.344 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-05/0.9657, allocations: 35.89 kB / 1.344 GB, free: 10.16 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.9658, allocations: 321.1 kB / 1.345 GB, free: 9.836 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.966, allocations: 45.38 kB / 1.345 GB, free: 9.816 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.9662, allocations: 86.14 kB / 1.345 GB, free: 9.75 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.9665, allocations: 128.1 kB / 1.345 GB, free: 9.648 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9665, allocations: 0 / 1.345 GB, free: 9.648 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004923/0.967, allocations: 204.6 kB / 1.345 GB, free: 9.516 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.198e-05/0.967, allocations: 40.94 kB / 1.345 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.9671, allocations: 1.125 kB / 1.345 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.9671, allocations: 1.125 kB / 1.345 GB, free: 9.477 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.9672, allocations: 17.11 kB / 1.345 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.9672, allocations: 1.281 kB / 1.345 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.9674, allocations: 31.39 kB / 1.345 GB, free: 9.457 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.9674, allocations: 14.66 kB / 1.345 GB, free: 9.449 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001252/0.9676, allocations: 123.8 kB / 1.345 GB, free: 9.324 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.9676, allocations: 6.859 kB / 1.345 GB, free: 9.32 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.9679, allocations: 113.7 kB / 1.345 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.9679, allocations: 1.906 kB / 1.345 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9679, allocations: 0 / 1.345 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.9679, allocations: 0 / 1.345 GB, free: 9.246 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005105/0.9684, allocations: 366.9 kB / 1.346 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.9684, allocations: 0 / 1.346 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.727e-05/0.9685, allocations: 10.67 kB / 1.346 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.9685, allocations: 1 kB / 1.346 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.9685, allocations: 1.094 kB / 1.346 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.9685, allocations: 3.938 kB / 1.346 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.9685, allocations: 4.906 kB / 1.346 GB, free: 8.875 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.9688, allocations: 215.3 kB / 1.346 GB, free: 8.695 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.9689, allocations: 78.2 kB / 1.346 GB, free: 8.602 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.169e-05/0.9689, allocations: 6.172 kB / 1.346 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.937e-05/0.969, allocations: 3.219 kB / 1.346 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.294e-05/0.9691, allocations: 10.92 kB / 1.346 GB, free: 8.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.9691, allocations: 5.969 kB / 1.346 GB, free: 8.586 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.625e-05/0.9691, allocations: 90.48 kB / 1.346 GB, free: 8.504 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.9691, allocations: 0 / 1.346 GB, free: 8.504 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002672/0.9694, allocations: 27.58 kB / 1.346 GB, free: 8.496 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0007417/0.9701, allocations: 0.739 MB / 1.347 GB, free: 7.797 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003914/0.9705, allocations: 156.1 kB / 1.347 GB, free: 7.688 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.9705, allocations: 0 / 1.347 GB, free: 7.688 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.9707, allocations: 40.89 kB / 1.347 GB, free: 7.668 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.9709, allocations: 15.05 kB / 1.347 GB, free: 7.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.9732, allocations: 1.645 MB / 1.349 GB, free: 6.172 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.9736, allocations: 0.6929 MB / 1.349 GB, free: 5.465 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.675e-05/0.9736, allocations: 11.66 kB / 1.349 GB, free: 5.457 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.908e-05/0.9737, allocations: 19.44 kB / 1.349 GB, free: 5.441 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.9737, allocations: 0 / 1.349 GB, free: 5.441 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.9933, allocations: 2.512 MB / 1.352 GB, free: 4.125 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.669/9.662, allocations: 6.625 kB / 1.352 GB, free: 4.125 MB / 1.029 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.253855717019178] Failed to read output from testmodel.py, exit status != 0: 9.791391503007617 9.819376887 8.85243756 Calling exit ...