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.001868/0.001868, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.001961/0.001961, allocations: 220 kB / 22.24 MB, free: 5.109 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.541/1.541, allocations: 230.6 MB / 256 MB, free: 7.801 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.335/3.335, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="me",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.002106/0.002106, allocations: 67.88 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3896, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002057/0.3917, allocations: 0.7167 MB / 1.364 GB, free: 13.38 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.3935, allocations: 1.218 MB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.291e-05/0.3935, allocations: 0 / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.326e-05/0.3935, allocations: 3.938 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.797e-05/0.3936, allocations: 7.938 kB / 1.365 GB, free: 12.13 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.3942, allocations: 148.9 kB / 1.365 GB, free: 11.99 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.3944, allocations: 119.8 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.3945, allocations: 11.98 kB / 1.366 GB, free: 11.86 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.544e-05/0.3946, allocations: 43.91 kB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.3947, allocations: 43.88 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.3947, allocations: 8 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.091e-05/0.3948, allocations: 31.97 kB / 1.366 GB, free: 11.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.3948, allocations: 11.94 kB / 1.366 GB, free: 11.73 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.3949, allocations: 35.91 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.3951, allocations: 123.8 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3951, allocations: 0 / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3951, allocations: 0 / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.3951, allocations: 0 / 1.366 GB, free: 11.57 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000609/0.3957, allocations: 333.4 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3958, allocations: 16.03 kB / 1.366 GB, free: 11.19 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.583e-05/0.3958, allocations: 34.75 kB / 1.366 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.958e-05/0.3959, allocations: 12.88 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.396, allocations: 114.4 kB / 1.366 GB, free: 11 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.396, allocations: 8.312 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.3961, allocations: 8.375 kB / 1.366 GB, free: 10.98 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.3963, allocations: 66.16 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3963, allocations: 3.938 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3963, allocations: 8 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3963, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.3965, allocations: 43.95 kB / 1.366 GB, free: 10.86 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004775/0.397, allocations: 267.9 kB / 1.367 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001724/0.3971, allocations: 54.48 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.3972, allocations: 28.92 kB / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.3972, allocations: 0 / 1.367 GB, free: 10.46 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002522/0.3975, allocations: 95.38 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.3975, allocations: 0 / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0004488/0.3979, allocations: 133.6 kB / 1.367 GB, free: 10.22 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.398, allocations: 55.41 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.3981, allocations: 109.8 kB / 1.367 GB, free: 10.04 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3981, allocations: 29.7 kB / 1.367 GB, free: 10 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.3982, allocations: 96.08 kB / 1.367 GB, free: 9.902 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.3982, allocations: 27.83 kB / 1.367 GB, free: 9.875 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.3983, allocations: 33.64 kB / 1.367 GB, free: 9.836 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3984, allocations: 326.8 kB / 1.368 GB, free: 9.508 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001812/0.3986, allocations: 81.66 kB / 1.368 GB, free: 9.422 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3988, allocations: 105.1 kB / 1.368 GB, free: 9.301 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3991, allocations: 133 kB / 1.368 GB, free: 9.152 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3991, allocations: 4 kB / 1.368 GB, free: 9.148 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004811/0.3996, allocations: 220.9 kB / 1.368 GB, free: 8.914 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.3996, allocations: 45.62 kB / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3996, allocations: 0 / 1.368 GB, free: 8.863 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.3997, allocations: 8 kB / 1.368 GB, free: 8.855 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.997e-05/0.3998, allocations: 11.98 kB / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.3998, allocations: 480 / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.4, allocations: 36.02 kB / 1.368 GB, free: 8.809 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.4, allocations: 12 kB / 1.368 GB, free: 8.797 MB / 1.061 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.0001021/0.4001, allocations: 117.8 kB / 1.368 GB, free: 8.672 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.757e-05/0.4001, allocations: 7.953 kB / 1.368 GB, free: 8.664 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003214/0.4004, allocations: 121.9 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.4004, allocations: 0 / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.4005, allocations: 0 / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.4005, allocations: 4 kB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004588/0.4009, allocations: 329.6 kB / 1.369 GB, free: 8.16 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4009, allocations: 0 / 1.369 GB, free: 8.16 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.377e-05/0.401, allocations: 15.92 kB / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.401, allocations: 0 / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.401, allocations: 0 / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.401, allocations: 0 / 1.369 GB, free: 8.145 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.401, allocations: 7.938 kB / 1.369 GB, free: 8.137 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003211/0.4013, allocations: 203.9 kB / 1.369 GB, free: 7.922 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.154e-05/0.4013, allocations: 3.953 kB / 1.369 GB, free: 7.918 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.4014, allocations: 4 kB / 1.369 GB, free: 7.914 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.881e-05/0.4014, allocations: 7.984 kB / 1.369 GB, free: 7.906 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.928e-05/0.4015, allocations: 11.92 kB / 1.369 GB, free: 7.895 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.4015, allocations: 4 kB / 1.369 GB, free: 7.891 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.114e-05/0.4015, allocations: 99.14 kB / 1.369 GB, free: 7.793 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4015, allocations: 0 / 1.369 GB, free: 7.793 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.00026/0.4018, allocations: 19.94 kB / 1.369 GB, free: 7.773 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: 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.0006872/0.4025, allocations: 0.7437 MB / 1.37 GB, free: 7.004 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004083/0.4029, allocations: 193 kB / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.4029, allocations: 0 / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.403, allocations: 31.92 kB / 1.37 GB, free: 6.766 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.4033, allocations: 20.33 kB / 1.37 GB, free: 6.746 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.4056, allocations: 1.767 MB / 1.372 GB, free: 4.848 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.015e-05/0.4057, allocations: 71.34 kB / 1.372 GB, free: 4.758 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.212e-05/0.4057, allocations: 4 kB / 1.372 GB, free: 4.754 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.895e-05/0.4057, allocations: 23.42 kB / 1.372 GB, free: 4.73 MB / 1.061 GB Notification: Performance of SimCode: time 6.61e-07/0.4057, allocations: 0 / 1.372 GB, free: 4.73 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03201/0.4378, allocations: 3.092 MB / 1.375 GB, free: 1.797 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.99, allocations: 16.16 kB / 1.375 GB, free: 1.789 MB / 1.061 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] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.002173349726945]