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.001872/0.001872, allocations: 78.33 kB / 19.18 MB, free: 2.527 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.002167/0.002167, allocations: 168.3 kB / 22.46 MB, free: 5.359 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.612/1.612, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.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 2.985/2.985, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/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: 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 3.467e-06/3.467e-06, allocations: 0 / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.217e-05/3.564e-05, allocations: 6.281 kB / 1 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002733/0.002769, allocations: 0.7111 MB / 1.001 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002539/0.005308, allocations: 1.224 MB / 1.002 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.641e-05/0.005385, allocations: 4 kB / 1.002 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.14e-05/0.005426, allocations: 3.938 kB / 1.002 GB, free: 5.332 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.005528, allocations: 15.86 kB / 1.002 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009148/0.006443, allocations: 144.2 kB / 1.002 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002899/0.006733, allocations: 119.8 kB / 1.002 GB, free: 5.062 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.006871, allocations: 7.984 kB / 1.002 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.007094, allocations: 59.95 kB / 1.002 GB, free: 4.996 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.007251, allocations: 43.86 kB / 1.002 GB, free: 4.953 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.007297, allocations: 12 kB / 1.002 GB, free: 4.941 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.007424, allocations: 35.86 kB / 1.002 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.007458, allocations: 8 kB / 1.002 GB, free: 4.898 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.007556, allocations: 39.89 kB / 1.002 GB, free: 4.859 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.007889, allocations: 135.6 kB / 1.003 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.007893, allocations: 0 / 1.003 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.184e-06/0.007895, allocations: 0 / 1.003 GB, free: 4.727 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.007908, allocations: 0 / 1.003 GB, free: 4.727 MB / 0.9512 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.0008934/0.008802, allocations: 331.8 kB / 1.003 GB, free: 4.363 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.008855, allocations: 8.031 kB / 1.003 GB, free: 4.355 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.009024, allocations: 16.94 kB / 1.003 GB, free: 4.34 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.00925, allocations: 113.7 kB / 1.003 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.009266, allocations: 4.312 kB / 1.003 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.009317, allocations: 8.375 kB / 1.003 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.009619, allocations: 70.16 kB / 1.003 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.009633, allocations: 192 / 1.003 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.009651, allocations: 4.359 kB / 1.003 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.009657, allocations: 384 / 1.003 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002693/0.009926, allocations: 51.89 kB / 1.003 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/0.01066, allocations: 252.5 kB / 1.003 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.01089, allocations: 46.48 kB / 1.003 GB, free: 3.73 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.01103, allocations: 28.92 kB / 1.004 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.01106, allocations: 4 kB / 1.004 GB, free: 3.695 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.01151, allocations: 87.3 kB / 1.004 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 5.24e-06/0.01151, allocations: 4 kB / 1.004 GB, free: 3.594 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.0006466/0.01216, allocations: 133.6 kB / 1.004 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.01222, allocations: 59.39 kB / 1.004 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.01236, allocations: 113.8 kB / 1.004 GB, free: 3.266 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.01241, allocations: 33.7 kB / 1.004 GB, free: 3.227 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.639e-05/0.01249, allocations: 88.12 kB / 1.004 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.01253, allocations: 19.84 kB / 1.004 GB, free: 3.117 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.01264, allocations: 33.7 kB / 1.004 GB, free: 3.078 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.01282, allocations: 322.8 kB / 1.004 GB, free: 2.754 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002521/0.01308, allocations: 81.66 kB / 1.004 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002764/0.01335, allocations: 109 kB / 1.005 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.01375, allocations: 129 kB / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.01375, allocations: 0 / 1.005 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0008268/0.01458, allocations: 236.8 kB / 1.005 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 6.688e-05/0.01465, allocations: 37.69 kB / 1.005 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.01465, allocations: 0 / 1.005 GB, free: 2.105 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.01467, allocations: 4 kB / 1.005 GB, free: 2.102 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.01481, allocations: 15.98 kB / 1.005 GB, free: 2.086 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.01482, allocations: 480 / 1.005 GB, free: 2.086 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.01511, allocations: 39.91 kB / 1.005 GB, free: 2.047 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.01515, allocations: 12.06 kB / 1.005 GB, free: 2.035 MB / 0.9512 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.0001401/0.01529, allocations: 114.4 kB / 1.005 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.01531, allocations: 7.938 kB / 1.005 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004334/0.01575, allocations: 121.9 kB / 1.005 GB, free: 1.781 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.01576, allocations: 4 kB / 1.005 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.01576, allocations: 0 / 1.005 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.01577, allocations: 0 / 1.005 GB, free: 1.777 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005873/0.01635, allocations: 310.5 kB / 1.006 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01636, allocations: 0 / 1.006 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-05/0.01645, allocations: 15.92 kB / 1.006 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.01646, allocations: 0 / 1.006 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.01647, allocations: 4 kB / 1.006 GB, free: 1.418 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.01647, allocations: 3.984 kB / 1.006 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.01648, allocations: 0 / 1.006 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.01694, allocations: 203.4 kB / 1.006 GB, free: 1.199 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 2.008e-05/0.01696, allocations: 15.89 kB / 1.006 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.01699, allocations: 0 / 1.006 GB, free: 1.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.01713, allocations: 7.984 kB / 1.006 GB, free: 1.176 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.352e-05/0.01719, allocations: 8 kB / 1.006 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.0172, allocations: 4.078 kB / 1.006 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.731e-05/0.01728, allocations: 87.28 kB / 1.006 GB, free: 1.078 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01728, allocations: 3.938 kB / 1.006 GB, free: 1.074 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004344/0.01771, allocations: 20 kB / 1.006 GB, free: 1.055 MB / 0.9512 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.0002372/0.01795, allocations: 107.2 kB / 1.006 GB, free: 0.9375 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000568/0.01852, allocations: 192.9 kB / 1.006 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.01852, allocations: 0 / 1.006 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.01869, allocations: 31.97 kB / 1.006 GB, free: 0.6992 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.01912, allocations: 16.2 kB / 1.006 GB, free: 0.6836 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006641/0.01979, allocations: 144.9 kB / 1.006 GB, free: 0.5156 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.01989, allocations: 71.47 kB / 1.006 GB, free: 436 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.637e-05/0.01993, allocations: 11.92 kB / 1.006 GB, free: 424 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.01997, allocations: 20.44 kB / 1.006 GB, free: 404 kB / 0.9512 GB Notification: Performance of SimCode: time 6.12e-07/0.01997, allocations: 0 / 1.006 GB, free: 404 kB / 0.9512 GB Notification: Performance of Templates: time 0.006781/0.02675, allocations: 1.516 MB / 1.008 GB, free: 14.91 MB / 0.9669 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: 8.621331732720137]