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.002687/0.002687, allocations: 102.7 kB / 16.45 MB, free: 6.449 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.002649/0.002649, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.699/1.699, allocations: 230.6 MB / 252.8 MB, free: 9.137 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.431/3.431, allocations: 0.49 GB / 0.7916 GB, free: 33.3 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.002106/0.002106, allocations: 72.73 kB / 1.149 GB, free: 26.12 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4537/0.4558, allocations: 176.1 MB / 1.321 GB, free: 2.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002499/0.4583, allocations: 0.7317 MB / 1.322 GB, free: 2.137 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00199/0.4603, allocations: 1.237 MB / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.412e-05/0.4604, allocations: 0 / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.976e-05/0.4604, allocations: 3.938 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.831e-05/0.4605, allocations: 19.86 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.4611, allocations: 141.4 kB / 1.323 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.4613, allocations: 115.8 kB / 1.323 GB, free: 0.6133 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.4614, allocations: 8 kB / 1.323 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.4616, allocations: 51.89 kB / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.4617, allocations: 47.81 kB / 1.324 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.4617, allocations: 12 kB / 1.324 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.833e-05/0.4618, allocations: 27.97 kB / 1.324 GB, free: 480 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.4618, allocations: 15.98 kB / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.529e-05/0.4619, allocations: 35.86 kB / 1.324 GB, free: 428 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.4621, allocations: 119.6 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4621, allocations: 4 kB / 1.324 GB, free: 304 kB / 1.014 GB Notification: Performance of FrontEnd: time 2.635e-06/0.4621, allocations: 0 / 1.324 GB, free: 304 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.4621, allocations: 0 / 1.324 GB, free: 304 kB / 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.0007901/0.4629, allocations: 408.9 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.4629, allocations: 15.98 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.4631, allocations: 8.891 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.4632, allocations: 176.3 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.4632, allocations: 12.36 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.4633, allocations: 4.375 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002267/0.4635, allocations: 70.2 kB / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.4635, allocations: 192 / 1.324 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.4635, allocations: 3.938 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.4635, allocations: 0 / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.4637, allocations: 39.95 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.4644, allocations: 336.6 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.4646, allocations: 46.55 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.4647, allocations: 24.94 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.4647, allocations: 0 / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003008/0.465, allocations: 95.23 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.465, allocations: 0 / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0005149/0.4655, allocations: 137.6 kB / 1.325 GB, free: 14.77 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.4656, allocations: 51.41 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.4657, allocations: 117.8 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.27e-05/0.4657, allocations: 29.7 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/0.4658, allocations: 92.09 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.4659, allocations: 19.95 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.03e-05/0.4659, allocations: 41.64 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4661, allocations: 318.8 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.4663, allocations: 51.91 kB / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.4664, allocations: 79.39 kB / 1.326 GB, free: 13.92 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.4668, allocations: 133 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4668, allocations: 0 / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004624/0.4672, allocations: 199.2 kB / 1.326 GB, free: 13.57 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.19e-05/0.4673, allocations: 37.69 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4673, allocations: 0 / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.4673, allocations: 4 kB / 1.326 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.4674, allocations: 15.98 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.4674, allocations: 3.938 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.4676, allocations: 35.97 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.659e-05/0.4677, allocations: 11.98 kB / 1.326 GB, free: 13.45 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.0001199/0.4678, allocations: 118.8 kB / 1.326 GB, free: 13.33 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.658e-05/0.4678, allocations: 7.953 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000329/0.4681, allocations: 114 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.4682, allocations: 0 / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.4682, allocations: 4 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.4682, allocations: 4 kB / 1.326 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005123/0.4687, allocations: 362.4 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4687, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.237e-05/0.4687, allocations: 8.453 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.4687, allocations: 4 kB / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.4688, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.4688, allocations: 0 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4688, allocations: 480 / 1.327 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.4691, allocations: 227.2 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.4692, allocations: 77.11 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.4692, allocations: 4 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.233e-05/0.4693, allocations: 12.08 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/0.4693, allocations: 11.91 kB / 1.327 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.4693, allocations: 12 kB / 1.327 GB, free: 12.4 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.77e-05/0.4694, allocations: 87.22 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4694, allocations: 0 / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002865/0.4697, allocations: 31.92 kB / 1.327 GB, free: 12.28 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.0001882/0.4699, allocations: 103.2 kB / 1.327 GB, free: 12.17 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00043/0.4703, allocations: 155.3 kB / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4703, allocations: 4.125 kB / 1.328 GB, free: 12 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.4704, allocations: 35.91 kB / 1.328 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.4707, allocations: 8 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004703/0.4712, allocations: 166.5 kB / 1.328 GB, free: 11.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/0.4716, allocations: 0.6845 MB / 1.328 GB, free: 11.06 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.654e-05/0.4716, allocations: 8 kB / 1.328 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.4717, allocations: 11.44 kB / 1.328 GB, free: 11.04 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.4717, allocations: 0 / 1.328 GB, free: 11.04 MB / 1.029 GB Notification: Performance of Templates: time 0.004751/0.4764, allocations: 1.398 MB / 1.33 GB, free: 9.656 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/jenkins/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: 9.887319047003984]