Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001657/0.001657, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001677/0.001677, allocations: 215.8 kB / 23.01 MB, free: 4.609 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.123/3.123, allocations: 0.49 GB / 0.7958 GB, free: 33.42 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [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.002024/0.002024, allocations: 75.59 kB / 1.155 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3171, allocations: 176.1 MB / 1.327 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001878/0.319, allocations: 0.7237 MB / 1.328 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.3205, allocations: 1.244 MB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.086e-05/0.3206, allocations: 3.938 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.3206, allocations: 3.984 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.499e-05/0.3207, allocations: 11.88 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005106/0.3212, allocations: 149.6 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.3214, allocations: 115.8 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.686e-05/0.3215, allocations: 11.98 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.133e-05/0.3216, allocations: 51.95 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.3217, allocations: 51.8 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.3217, allocations: 8 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.313e-05/0.3218, allocations: 27.98 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.177e-05/0.3218, allocations: 8 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.644e-05/0.3218, allocations: 43.84 kB / 1.33 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.322, allocations: 115.6 kB / 1.33 GB, free: 14.96 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.322, allocations: 4 kB / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.212e-06/0.322, allocations: 0 / 1.33 GB, free: 14.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.322, allocations: 0 / 1.33 GB, free: 14.95 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.0005708/0.3226, allocations: 343.7 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.3226, allocations: 8.031 kB / 1.33 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.844e-05/0.3227, allocations: 8.938 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.3228, allocations: 118.4 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.3229, allocations: 8.375 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.3229, allocations: 8.375 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.3231, allocations: 66.22 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.3231, allocations: 192 / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.3231, allocations: 3.938 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.3231, allocations: 0 / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.3233, allocations: 47.89 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.3237, allocations: 299.8 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.3239, allocations: 46.55 kB / 1.331 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.678e-05/0.324, allocations: 24.94 kB / 1.331 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.324, allocations: 0 / 1.331 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.3243, allocations: 95.3 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.3243, allocations: 3.938 kB / 1.331 GB, free: 13.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004371/0.3247, allocations: 133.6 kB / 1.331 GB, free: 13.62 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.3247, allocations: 51.41 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.626e-05/0.3248, allocations: 117.8 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.847e-05/0.3249, allocations: 29.7 kB / 1.331 GB, free: 13.4 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.3249, allocations: 96.2 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.325, allocations: 23.78 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.077e-05/0.325, allocations: 41.64 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3252, allocations: 314.8 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.3253, allocations: 55.95 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.3255, allocations: 79.39 kB / 1.332 GB, free: 12.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.3258, allocations: 129 kB / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3258, allocations: 0 / 1.332 GB, free: 12.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004311/0.3262, allocations: 195.3 kB / 1.332 GB, free: 12.42 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.3262, allocations: 41.69 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3263, allocations: 4 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3263, allocations: 0 / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.88e-05/0.3264, allocations: 15.92 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3264, allocations: 0 / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.3266, allocations: 31.92 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3266, allocations: 11.98 kB / 1.332 GB, free: 12.31 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.0001385/0.3267, allocations: 122.3 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3267, allocations: 7.953 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.327, allocations: 117.9 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.327, allocations: 4 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.327, allocations: 0 / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.327, allocations: 0 / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004414/0.3275, allocations: 333.6 kB / 1.333 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3275, allocations: 0 / 1.333 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.942e-05/0.3275, allocations: 8.094 kB / 1.333 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.3275, allocations: 4.453 kB / 1.333 GB, free: 11.66 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.3276, allocations: 7.984 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3276, allocations: 0 / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3276, allocations: 0 / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003343/0.3279, allocations: 219.8 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.028e-05/0.3279, allocations: 7.938 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.3279, allocations: 3.938 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.36e-05/0.328, allocations: 11.98 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.285e-05/0.3281, allocations: 15.92 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/0.3281, allocations: 0 / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.37e-05/0.3281, allocations: 87.28 kB / 1.333 GB, free: 11.3 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3281, allocations: 4 kB / 1.333 GB, free: 11.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002613/0.3284, allocations: 27.92 kB / 1.333 GB, free: 11.27 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.0001331/0.3285, allocations: 99.25 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003737/0.3289, allocations: 151.3 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3289, allocations: 0 / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.329, allocations: 44.03 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3293, allocations: 8 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003885/0.3297, allocations: 192.8 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.33, allocations: 0.6884 MB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.3301, allocations: 11.44 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3301, allocations: 0 / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of Templates: time 0.003206/0.3333, allocations: 1.213 MB / 1.335 GB, free: 8.801 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.102308658999391]