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.001692/0.001692, allocations: 105.8 kB / 19.73 MB, free: 2.223 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.002181/0.002181, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.58/1.58, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.314/3.314, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 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.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.002085/0.002085, allocations: 62.97 kB / 1.171 GB, free: 19.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3458, allocations: 179 MB / 1.345 GB, free: 476 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002245/0.3481, allocations: 0.7168 MB / 1.346 GB, free: 15.75 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001891/0.35, allocations: 1.248 MB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/0.35, allocations: 0 / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.274e-05/0.3501, allocations: 3.938 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.545e-05/0.3501, allocations: 7.922 kB / 1.347 GB, free: 14.47 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005526/0.3507, allocations: 150.8 kB / 1.347 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.3509, allocations: 115.8 kB / 1.348 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.345e-05/0.351, allocations: 12 kB / 1.348 GB, free: 14.2 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.3511, allocations: 51.89 kB / 1.348 GB, free: 14.15 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.3512, allocations: 47.83 kB / 1.348 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.3512, allocations: 8 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.3513, allocations: 31.92 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.331e-05/0.3513, allocations: 15.97 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.463e-05/0.3514, allocations: 39.86 kB / 1.348 GB, free: 14.01 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.3516, allocations: 111.9 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3516, allocations: 4 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3516, allocations: 0 / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.3516, allocations: 0 / 1.348 GB, free: 13.9 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.0006049/0.3522, allocations: 349.5 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.3523, allocations: 8.031 kB / 1.348 GB, free: 13.51 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.437e-05/0.3523, allocations: 8.125 kB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.431e-05/0.3523, allocations: 34.75 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.549e-05/0.3524, allocations: 8.891 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.3525, allocations: 118.5 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.3525, allocations: 12.31 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/0.3526, allocations: 12.38 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.3528, allocations: 65.97 kB / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3528, allocations: 0 / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.3528, allocations: 0 / 1.348 GB, free: 13.22 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3528, allocations: 4 kB / 1.348 GB, free: 13.21 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.353, allocations: 43.95 kB / 1.348 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005039/0.3535, allocations: 299.7 kB / 1.349 GB, free: 12.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.3537, allocations: 42.55 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3538, allocations: 28.94 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.3538, allocations: 4 kB / 1.349 GB, free: 12.75 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.354, allocations: 95.41 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.354, allocations: 0 / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004613/0.3545, allocations: 133.5 kB / 1.349 GB, free: 12.51 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.3546, allocations: 59.41 kB / 1.349 GB, free: 12.44 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.958e-05/0.3547, allocations: 109.8 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.074e-05/0.3547, allocations: 33.64 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/0.3548, allocations: 96.09 kB / 1.349 GB, free: 12.18 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.3548, allocations: 23.81 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.3549, allocations: 33.7 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.355, allocations: 322.8 kB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.3552, allocations: 47.95 kB / 1.35 GB, free: 11.75 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3554, allocations: 79.77 kB / 1.35 GB, free: 11.66 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.3556, allocations: 129 kB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3556, allocations: 0 / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004925/0.3561, allocations: 203.2 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.849e-05/0.3562, allocations: 41.78 kB / 1.35 GB, free: 11.26 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3562, allocations: 3.938 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.3562, allocations: 0 / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3563, allocations: 15.98 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3563, allocations: 0 / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3565, allocations: 27.97 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.3566, allocations: 7.984 kB / 1.35 GB, free: 11.2 MB / 1.045 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.0001151/0.3567, allocations: 135.8 kB / 1.35 GB, free: 11.06 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.785e-05/0.3567, allocations: 7.953 kB / 1.35 GB, free: 11.05 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003215/0.357, allocations: 110 kB / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.357, allocations: 0 / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.357, allocations: 4 kB / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.357, allocations: 0 / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004831/0.3575, allocations: 337.5 kB / 1.351 GB, free: 10.56 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3575, allocations: 0 / 1.351 GB, free: 10.56 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.3576, allocations: 8 kB / 1.351 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3576, allocations: 4.078 kB / 1.351 GB, free: 10.55 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.37e-05/0.3576, allocations: 8 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3576, allocations: 0 / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.3576, allocations: 7.922 kB / 1.351 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.3579, allocations: 203.5 kB / 1.351 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.706e-06/0.3579, allocations: 3.938 kB / 1.351 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.358, allocations: 0 / 1.351 GB, free: 10.31 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-05/0.3581, allocations: 11.92 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.3581, allocations: 15.92 kB / 1.351 GB, free: 10.29 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3581, allocations: 4 kB / 1.351 GB, free: 10.28 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.644e-05/0.3582, allocations: 83.28 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3582, allocations: 4 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002758/0.3584, allocations: 31.88 kB / 1.351 GB, free: 10.16 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: 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.0006788/0.3591, allocations: 0.7323 MB / 1.352 GB, free: 9.406 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003933/0.3595, allocations: 159.9 kB / 1.352 GB, free: 9.238 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3595, allocations: 3.938 kB / 1.352 GB, free: 9.234 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.3596, allocations: 35.91 kB / 1.352 GB, free: 9.199 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.3599, allocations: 17.64 kB / 1.352 GB, free: 9.184 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3622, allocations: 1.652 MB / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/0.3625, allocations: 0.6885 MB / 1.354 GB, free: 6.707 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.699e-05/0.3625, allocations: 11.73 kB / 1.354 GB, free: 6.695 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.172e-05/0.3626, allocations: 15.44 kB / 1.354 GB, free: 6.68 MB / 1.045 GB Notification: Performance of SimCode: time 7.02e-07/0.3626, allocations: 0 / 1.354 GB, free: 6.68 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.3869, allocations: 2.608 MB / 1.357 GB, free: 4.223 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.83, allocations: 8.297 kB / 1.357 GB, free: 4.219 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.73831306496868] Failed to read output from testmodel.py, exit status != 0: 11.99311654799385 12.009354497 11.65465945 Calling exit ...