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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002332/0.002332, allocations: 188 kB / 22.22 MB, free: 5.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.177/3.177, allocations: 0.4893 GB / 0.7884 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 59.78 kB / 1.145 GB, free: 30.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.4078, allocations: 174.9 MB / 1.316 GB, free: 9.559 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002611/0.4104, allocations: 0.7323 MB / 1.317 GB, free: 8.828 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001737/0.4121, allocations: 1.205 MB / 1.318 GB, free: 7.609 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.658e-05/0.4122, allocations: 0 / 1.318 GB, free: 7.609 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.867e-05/0.4122, allocations: 3.938 kB / 1.318 GB, free: 7.605 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.4123, allocations: 11.86 kB / 1.318 GB, free: 7.594 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.4128, allocations: 142.2 kB / 1.318 GB, free: 7.457 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.413, allocations: 115.8 kB / 1.318 GB, free: 7.344 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.816e-05/0.4131, allocations: 19.98 kB / 1.318 GB, free: 7.324 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.4132, allocations: 51.89 kB / 1.318 GB, free: 7.273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.4133, allocations: 43.83 kB / 1.318 GB, free: 7.23 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.4133, allocations: 12 kB / 1.318 GB, free: 7.219 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.4134, allocations: 27.92 kB / 1.318 GB, free: 7.191 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.886e-05/0.4134, allocations: 15.97 kB / 1.318 GB, free: 7.176 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.017e-05/0.4135, allocations: 39.86 kB / 1.318 GB, free: 7.137 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.4137, allocations: 103.7 kB / 1.318 GB, free: 7.035 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4137, allocations: 0 / 1.318 GB, free: 7.035 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4137, allocations: 0 / 1.318 GB, free: 7.035 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.4137, allocations: 3.938 kB / 1.318 GB, free: 7.031 MB / 1.014 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.0006367/0.4144, allocations: 335.8 kB / 1.319 GB, free: 6.664 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.4144, allocations: 12.03 kB / 1.319 GB, free: 6.652 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.4145, allocations: 8.891 kB / 1.319 GB, free: 6.645 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.4146, allocations: 118.5 kB / 1.319 GB, free: 6.504 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.4146, allocations: 4.375 kB / 1.319 GB, free: 6.5 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.4146, allocations: 4.375 kB / 1.319 GB, free: 6.496 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.4148, allocations: 70.16 kB / 1.319 GB, free: 6.422 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.4148, allocations: 4.188 kB / 1.319 GB, free: 6.418 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.4149, allocations: 3.938 kB / 1.319 GB, free: 6.414 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.4149, allocations: 0 / 1.319 GB, free: 6.414 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.415, allocations: 47.94 kB / 1.319 GB, free: 6.367 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000502/0.4155, allocations: 291.8 kB / 1.319 GB, free: 6.039 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.4157, allocations: 62.42 kB / 1.319 GB, free: 5.969 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.183e-05/0.4158, allocations: 24.94 kB / 1.319 GB, free: 5.941 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.4158, allocations: 0 / 1.319 GB, free: 5.941 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.4161, allocations: 95.3 kB / 1.319 GB, free: 5.836 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.4161, allocations: 0 / 1.319 GB, free: 5.836 MB / 1.014 GB Notification: Performance of matching and sorting (n=7): time 0.0004323/0.4165, allocations: 145.6 kB / 1.32 GB, free: 5.688 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.4165, allocations: 51.41 kB / 1.32 GB, free: 5.625 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.4166, allocations: 117.8 kB / 1.32 GB, free: 5.5 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.4167, allocations: 29.7 kB / 1.32 GB, free: 5.465 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/0.4167, allocations: 88.14 kB / 1.32 GB, free: 5.375 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.4168, allocations: 15.89 kB / 1.32 GB, free: 5.359 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.54e-05/0.4168, allocations: 37.7 kB / 1.32 GB, free: 5.316 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.417, allocations: 318.8 kB / 1.32 GB, free: 4.996 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.4171, allocations: 51.95 kB / 1.32 GB, free: 4.945 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4173, allocations: 75.39 kB / 1.32 GB, free: 4.859 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.4175, allocations: 133 kB / 1.321 GB, free: 4.711 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.4175, allocations: 0 / 1.321 GB, free: 4.711 MB / 1.014 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004211/0.418, allocations: 207.1 kB / 1.321 GB, free: 4.496 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.647e-05/0.418, allocations: 37.62 kB / 1.321 GB, free: 4.453 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.418, allocations: 4 kB / 1.321 GB, free: 4.449 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.418, allocations: 4.062 kB / 1.321 GB, free: 4.445 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.902e-05/0.4181, allocations: 11.98 kB / 1.321 GB, free: 4.434 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.4181, allocations: 4 kB / 1.321 GB, free: 4.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.4183, allocations: 39.86 kB / 1.321 GB, free: 4.391 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.4183, allocations: 7.984 kB / 1.321 GB, free: 4.383 MB / 1.014 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.0001197/0.4184, allocations: 122.4 kB / 1.321 GB, free: 4.254 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.4185, allocations: 4 kB / 1.321 GB, free: 4.25 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002913/0.4187, allocations: 117.9 kB / 1.321 GB, free: 4.125 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4187, allocations: 4 kB / 1.321 GB, free: 4.121 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4188, allocations: 0 / 1.321 GB, free: 4.121 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.4188, allocations: 480 / 1.321 GB, free: 4.121 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004297/0.4192, allocations: 337.5 kB / 1.321 GB, free: 3.742 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4192, allocations: 4 kB / 1.321 GB, free: 3.738 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.4192, allocations: 11.98 kB / 1.321 GB, free: 3.727 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.4193, allocations: 0 / 1.321 GB, free: 3.727 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.4193, allocations: 3.938 kB / 1.321 GB, free: 3.723 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4193, allocations: 0 / 1.321 GB, free: 3.723 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4193, allocations: 0 / 1.321 GB, free: 3.723 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.4196, allocations: 203.4 kB / 1.322 GB, free: 3.508 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.279e-05/0.4196, allocations: 11.95 kB / 1.322 GB, free: 3.496 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.4196, allocations: 4 kB / 1.322 GB, free: 3.492 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.4197, allocations: 7.984 kB / 1.322 GB, free: 3.484 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.4197, allocations: 11.92 kB / 1.322 GB, free: 3.473 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.4197, allocations: 0 / 1.322 GB, free: 3.473 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.115e-05/0.4198, allocations: 95.2 kB / 1.322 GB, free: 3.379 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.4198, allocations: 0 / 1.322 GB, free: 3.379 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002406/0.42, allocations: 24 kB / 1.322 GB, free: 3.355 MB / 1.014 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.0001384/0.4202, allocations: 99.78 kB / 1.322 GB, free: 3.25 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003659/0.4205, allocations: 155.3 kB / 1.322 GB, free: 3.086 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4205, allocations: 4 kB / 1.322 GB, free: 3.082 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.4206, allocations: 35.95 kB / 1.322 GB, free: 3.047 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.4209, allocations: 16.77 kB / 1.322 GB, free: 3.031 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003674/0.4213, allocations: 162.7 kB / 1.322 GB, free: 2.848 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.4216, allocations: 0.6943 MB / 1.323 GB, free: 2.129 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.014e-05/0.4216, allocations: 7.75 kB / 1.323 GB, free: 2.121 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.4216, allocations: 15.42 kB / 1.323 GB, free: 2.105 MB / 1.014 GB Notification: Performance of SimCode: time 3.2e-07/0.4216, allocations: 4 kB / 1.323 GB, free: 2.102 MB / 1.014 GB Notification: Performance of Templates: time 0.004331/0.426, allocations: 1.429 MB / 1.324 GB, free: 0.6914 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 800] 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/jenkins/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: 9.297708922065794]