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.0007904/0.0007904, allocations: 76.5 kB / 19.93 MB, free: 4.621 MB / 18.57 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.0007927/0.0007927, allocations: 177.9 kB / 23.21 MB, free: 1.34 MB / 18.57 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 0.8934/0.8934, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.748/1.748, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] 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 2.064e-06/2.064e-06, allocations: 0 / 1.001 GB, free: 11.94 MB / 0.9167 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.131e-05/2.337e-05, allocations: 6.219 kB / 1.001 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001298/0.001322, allocations: 0.7194 MB / 1.002 GB, free: 11.21 MB / 0.9167 GB Notification: Performance of NFInst.instExpressions: time 0.001154/0.002476, allocations: 1.222 MB / 1.003 GB, free: 9.98 MB / 0.9167 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.528e-05/0.002521, allocations: 0 / 1.003 GB, free: 9.98 MB / 0.9167 GB Notification: Performance of NFTyping.typeComponents: time 2.834e-05/0.00255, allocations: 3.938 kB / 1.003 GB, free: 9.977 MB / 0.9167 GB Notification: Performance of NFTyping.typeBindings: time 6.089e-05/0.002611, allocations: 11.88 kB / 1.003 GB, free: 9.965 MB / 0.9167 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.003013, allocations: 149.7 kB / 1.003 GB, free: 9.824 MB / 0.9167 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.003151, allocations: 131.7 kB / 1.003 GB, free: 9.695 MB / 0.9167 GB Notification: Performance of NFFlatten.resolveConnections: time 8.494e-05/0.003236, allocations: 7.984 kB / 1.003 GB, free: 9.688 MB / 0.9167 GB Notification: Performance of NFEvalConstants.evaluate: time 9.425e-05/0.003331, allocations: 59.95 kB / 1.003 GB, free: 9.629 MB / 0.9167 GB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.003403, allocations: 39.88 kB / 1.003 GB, free: 9.59 MB / 0.9167 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.003424, allocations: 8 kB / 1.003 GB, free: 9.582 MB / 0.9167 GB Notification: Performance of NFFlatten.collectFunctions: time 5.21e-05/0.003476, allocations: 27.98 kB / 1.003 GB, free: 9.555 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 2.151e-05/0.003497, allocations: 15.97 kB / 1.003 GB, free: 9.539 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.003542, allocations: 31.92 kB / 1.003 GB, free: 9.508 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.003697, allocations: 135.6 kB / 1.003 GB, free: 9.375 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003699, allocations: 0 / 1.003 GB, free: 9.375 MB / 0.9167 GB Notification: Performance of FrontEnd: time 9.02e-07/0.0037, allocations: 4 kB / 1.003 GB, free: 9.371 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.357e-06/0.003703, allocations: 0 / 1.003 GB, free: 9.371 MB / 0.9167 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.0004467/0.00415, allocations: 331.8 kB / 1.004 GB, free: 9.008 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.004181, allocations: 9.344 kB / 1.004 GB, free: 9 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.004254, allocations: 12.89 kB / 1.004 GB, free: 8.988 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.359e-05/0.004327, allocations: 125.6 kB / 1.004 GB, free: 8.84 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.004339, allocations: 384 / 1.004 GB, free: 8.84 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.004355, allocations: 8.375 kB / 1.004 GB, free: 8.832 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.004488, allocations: 66.22 kB / 1.004 GB, free: 8.762 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.873e-06/0.004495, allocations: 4.188 kB / 1.004 GB, free: 8.758 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.004504, allocations: 384 / 1.004 GB, free: 8.758 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.399e-06/0.004508, allocations: 384 / 1.004 GB, free: 8.758 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.662e-05/0.004605, allocations: 47.89 kB / 1.004 GB, free: 8.711 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004172/0.005022, allocations: 248.5 kB / 1.004 GB, free: 8.438 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.005136, allocations: 42.55 kB / 1.004 GB, free: 8.387 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.072e-05/0.005187, allocations: 24.94 kB / 1.004 GB, free: 8.359 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.005214, allocations: 8 kB / 1.004 GB, free: 8.352 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/0.005375, allocations: 91.25 kB / 1.004 GB, free: 8.25 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.005377, allocations: 0 / 1.004 GB, free: 8.25 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0003105/0.005688, allocations: 145.5 kB / 1.004 GB, free: 8.102 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.005726, allocations: 55.41 kB / 1.005 GB, free: 8.035 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.948e-05/0.005795, allocations: 113.8 kB / 1.005 GB, free: 7.914 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.005815, allocations: 37.7 kB / 1.005 GB, free: 7.871 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.63e-05/0.005862, allocations: 88.14 kB / 1.005 GB, free: 7.781 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.005879, allocations: 15.89 kB / 1.005 GB, free: 7.766 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.005923, allocations: 33.7 kB / 1.005 GB, free: 7.727 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.038e-05/0.005993, allocations: 318.8 kB / 1.005 GB, free: 7.406 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.006093, allocations: 77.66 kB / 1.005 GB, free: 7.324 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.006199, allocations: 113 kB / 1.005 GB, free: 7.195 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.006343, allocations: 141 kB / 1.005 GB, free: 7.039 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.006345, allocations: 0 / 1.005 GB, free: 7.039 MB / 0.9167 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002522/0.006597, allocations: 232.8 kB / 1.006 GB, free: 6.793 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.006624, allocations: 33.7 kB / 1.006 GB, free: 6.754 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.00663, allocations: 3.984 kB / 1.006 GB, free: 6.75 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.006643, allocations: 4 kB / 1.006 GB, free: 6.746 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.644e-05/0.006709, allocations: 12 kB / 1.006 GB, free: 6.734 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.006714, allocations: 4.062 kB / 1.006 GB, free: 6.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.762e-05/0.006811, allocations: 39.84 kB / 1.006 GB, free: 6.691 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.006826, allocations: 11.98 kB / 1.006 GB, free: 6.68 MB / 0.9167 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 6.101e-05/0.006887, allocations: 117.8 kB / 1.006 GB, free: 6.555 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.496e-06/0.006896, allocations: 7.938 kB / 1.006 GB, free: 6.547 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.007068, allocations: 114.1 kB / 1.006 GB, free: 6.426 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.007071, allocations: 8 kB / 1.006 GB, free: 6.418 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.007074, allocations: 0 / 1.006 GB, free: 6.418 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.007078, allocations: 3.984 kB / 1.006 GB, free: 6.414 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.007306, allocations: 306.1 kB / 1.006 GB, free: 6.078 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.007307, allocations: 0 / 1.006 GB, free: 6.078 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.743e-05/0.007335, allocations: 7.984 kB / 1.006 GB, free: 6.07 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.007336, allocations: 0 / 1.006 GB, free: 6.07 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.007343, allocations: 4.469 kB / 1.006 GB, free: 6.066 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.007344, allocations: 4 kB / 1.006 GB, free: 6.062 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.007345, allocations: 0 / 1.006 GB, free: 6.062 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.007499, allocations: 207.3 kB / 1.006 GB, free: 5.844 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-06/0.007506, allocations: 7.953 kB / 1.007 GB, free: 5.836 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.007519, allocations: 7.922 kB / 1.007 GB, free: 5.828 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.991e-05/0.007559, allocations: 4 kB / 1.007 GB, free: 5.824 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.007596, allocations: 11.98 kB / 1.007 GB, free: 5.812 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.007601, allocations: 0 / 1.007 GB, free: 5.812 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.704e-05/0.007638, allocations: 91.27 kB / 1.007 GB, free: 5.723 MB / 0.9167 GB Notification: Performance of sort global known variables: time 7e-08/0.007638, allocations: 4 kB / 1.007 GB, free: 5.719 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001666/0.007805, allocations: 23.94 kB / 1.007 GB, free: 5.695 MB / 0.9167 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.0001045/0.007909, allocations: 103.2 kB / 1.007 GB, free: 5.586 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.00814, allocations: 189.5 kB / 1.007 GB, free: 5.383 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.008142, allocations: 0 / 1.007 GB, free: 5.383 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.082e-05/0.008202, allocations: 31.97 kB / 1.007 GB, free: 5.352 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.0084, allocations: 21.77 kB / 1.007 GB, free: 5.332 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.008747, allocations: 194.5 kB / 1.007 GB, free: 5.109 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.668e-05/0.008803, allocations: 75.23 kB / 1.007 GB, free: 5.016 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.008833, allocations: 12.5 kB / 1.007 GB, free: 5.004 MB / 0.9167 GB Notification: Performance of SimCode: time 7.12e-07/0.008834, allocations: 0 / 1.007 GB, free: 5.004 MB / 0.9167 GB Notification: Performance of Templates: time 0.002386/0.01122, allocations: 1.218 MB / 1.008 GB, free: 3.789 MB / 0.9167 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: 6.3259733989834785]