Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.00134/0.00134, allocations: 97.11 kB / 19.7 MB, free: 2.129 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.001786/0.001786, allocations: 210.6 kB / 23 MB, free: 4.934 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.402/3.402, allocations: 0.49 GB / 0.7959 GB, free: 35.5 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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [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.002044/0.002044, allocations: 73.25 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4492/0.4513, allocations: 176.1 MB / 1.327 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002367/0.4536, allocations: 0.7496 MB / 1.328 GB, free: 308 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.4555, allocations: 1.186 MB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.972e-05/0.4556, allocations: 4 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.676e-05/0.4556, allocations: 7.938 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 9.609e-05/0.4557, allocations: 11.86 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005626/0.4563, allocations: 138.3 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.4565, allocations: 127.7 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.4566, allocations: 16.17 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.4567, allocations: 51.84 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.4568, allocations: 51.81 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.4569, allocations: 12 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.76e-05/0.457, allocations: 31.98 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.043e-05/0.457, allocations: 11.98 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.643e-05/0.4571, allocations: 43.84 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.4573, allocations: 131.5 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4573, allocations: 0 / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4573, allocations: 0 / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.4573, allocations: 0 / 1.33 GB, free: 14.47 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000737/0.4581, allocations: 339.8 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.4581, allocations: 8.031 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.4582, allocations: 12.89 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.4584, allocations: 126.4 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.4584, allocations: 8.375 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.4584, allocations: 12.31 kB / 1.33 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/0.4587, allocations: 70.16 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.4587, allocations: 3.938 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.4587, allocations: 4 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.4587, allocations: 4 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.4589, allocations: 47.89 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000562/0.4594, allocations: 272.4 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.4596, allocations: 54.58 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.4597, allocations: 36.95 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.4598, allocations: 0 / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.4601, allocations: 83.36 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.572e-06/0.4601, allocations: 4 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0004751/0.4605, allocations: 149.5 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.4606, allocations: 55.41 kB / 1.331 GB, free: 13.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.4607, allocations: 117.8 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.4607, allocations: 33.7 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.4608, allocations: 96.09 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.4608, allocations: 31.77 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.401e-05/0.4609, allocations: 37.7 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4611, allocations: 322.8 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.4613, allocations: 85.66 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.4615, allocations: 118.8 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003171/0.4618, allocations: 146.8 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.4618, allocations: 8 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004888/0.4623, allocations: 240.8 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.4623, allocations: 37.69 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.4623, allocations: 7.938 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.4624, allocations: 0 / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.4625, allocations: 15.98 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.4625, allocations: 4.094 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000208/0.4627, allocations: 39.95 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.442e-05/0.4627, allocations: 8 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.000125/0.4628, allocations: 130.2 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.4629, allocations: 11.94 kB / 1.332 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003161/0.4632, allocations: 122 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4632, allocations: 4 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.4632, allocations: 0 / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.359e-05/0.4632, allocations: 7.953 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.4632, allocations: 7.984 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.823e-05/0.4633, allocations: 7.938 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.4633, allocations: 7.984 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000342/0.4637, allocations: 209.1 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003598/0.464, allocations: 286.7 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000107/0.4641, allocations: 35.97 kB / 1.333 GB, free: 10.78 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.938e-05/0.4642, allocations: 95.75 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of Backend: time 5.21e-07/0.4642, allocations: 0 / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006572/0.4649, allocations: 257.3 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of SimCode: time 0.0007058/0.4656, allocations: 0.6171 MB / 1.334 GB, free: 9.746 MB / 1.029 GB Notification: Performance of Templates: time 0.006321/0.4719, allocations: 1.823 MB / 1.336 GB, free: 7.957 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.490644920995692]