Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008411/0.0008411, allocations: 80.48 kB / 19.93 MB, free: 4.629 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.0008093/0.0008093, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8545/0.8545, allocations: 177.2 MB / 203.5 MB, free: 5.758 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.747/1.747, allocations: 389.1 MB / 0.6338 GB, free: 12.68 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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.814e-05, allocations: 2.281 kB / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00118/0.001198, allocations: 0.7324 MB / 1.002 GB, free: 12.3 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.002232, allocations: 1.19 MB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.002275, allocations: 0 / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.676e-05/0.002302, allocations: 3.938 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.056e-05/0.002362, allocations: 11.88 kB / 1.003 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.00272, allocations: 150.7 kB / 1.003 GB, free: 10.94 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.002856, allocations: 135.7 kB / 1.003 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.867e-05/0.002945, allocations: 12.17 kB / 1.003 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.648e-05/0.003041, allocations: 75.81 kB / 1.003 GB, free: 10.71 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.454e-05/0.003116, allocations: 39.94 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.003136, allocations: 8 kB / 1.003 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.468e-05/0.003191, allocations: 23.98 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.255e-05/0.003214, allocations: 23.91 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.003258, allocations: 35.97 kB / 1.003 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.003417, allocations: 147.6 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.003419, allocations: 0 / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of FrontEnd: time 7.32e-07/0.00342, allocations: 3.938 kB / 1.003 GB, free: 10.44 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.317e-06/0.003423, allocations: 0 / 1.003 GB, free: 10.44 MB / 0.9636 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.0004174/0.00384, allocations: 343.8 kB / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.003875, allocations: 9.344 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.244e-05/0.003947, allocations: 12.89 kB / 1.004 GB, free: 10.05 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.282e-05/0.00402, allocations: 121.6 kB / 1.004 GB, free: 9.902 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.004033, allocations: 4.375 kB / 1.004 GB, free: 9.898 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.00405, allocations: 20.36 kB / 1.004 GB, free: 9.879 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001361/0.004186, allocations: 66.22 kB / 1.004 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.004194, allocations: 192 / 1.004 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.004203, allocations: 384 / 1.004 GB, free: 9.809 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.004208, allocations: 8.125 kB / 1.004 GB, free: 9.801 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.933e-05/0.004307, allocations: 43.95 kB / 1.004 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.004645, allocations: 272.4 kB / 1.004 GB, free: 9.461 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.004752, allocations: 54.55 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.245e-05/0.004804, allocations: 36.89 kB / 1.004 GB, free: 9.359 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.004822, allocations: 4.031 kB / 1.004 GB, free: 9.355 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001305/0.004952, allocations: 87.36 kB / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=8): time 1.032e-06/0.004953, allocations: 0 / 1.004 GB, free: 9.258 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8): time 0.0002721/0.005226, allocations: 149.8 kB / 1.005 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.005257, allocations: 59.41 kB / 1.005 GB, free: 9.035 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.006e-05/0.005317, allocations: 121.8 kB / 1.005 GB, free: 8.906 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.005334, allocations: 33.64 kB / 1.005 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/0.005377, allocations: 96.08 kB / 1.005 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.005396, allocations: 23.83 kB / 1.005 GB, free: 8.746 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.005442, allocations: 37.7 kB / 1.005 GB, free: 8.703 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0003058/0.005748, allocations: 322.8 kB / 1.005 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.005851, allocations: 85.61 kB / 1.005 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.005958, allocations: 122.8 kB / 1.005 GB, free: 8.145 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.006122, allocations: 154.8 kB / 1.006 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.006124, allocations: 0 / 1.006 GB, free: 7.969 MB / 0.9636 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002594/0.006384, allocations: 244.8 kB / 1.006 GB, free: 7.711 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.006409, allocations: 41.69 kB / 1.006 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.006413, allocations: 0 / 1.006 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.006425, allocations: 4 kB / 1.006 GB, free: 7.66 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.918e-05/0.006484, allocations: 19.92 kB / 1.006 GB, free: 7.641 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.006488, allocations: 0 / 1.006 GB, free: 7.641 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.00659, allocations: 40.06 kB / 1.006 GB, free: 7.602 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.006604, allocations: 12 kB / 1.006 GB, free: 7.59 MB / 0.9636 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 6.451e-05/0.006669, allocations: 120.2 kB / 1.006 GB, free: 7.465 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-06/0.006678, allocations: 11.89 kB / 1.006 GB, free: 7.453 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001652/0.006843, allocations: 122 kB / 1.006 GB, free: 7.328 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.006846, allocations: 4 kB / 1.006 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.006849, allocations: 0 / 1.006 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.006852, allocations: 0 / 1.006 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002395/0.007091, allocations: 326.1 kB / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.007093, allocations: 0 / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.93e-05/0.007122, allocations: 15.92 kB / 1.007 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.007123, allocations: 0 / 1.007 GB, free: 6.953 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.007131, allocations: 4 kB / 1.007 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.007132, allocations: 0 / 1.007 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.007132, allocations: 0 / 1.007 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.007289, allocations: 223.4 kB / 1.007 GB, free: 6.715 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.007297, allocations: 7.953 kB / 1.007 GB, free: 6.707 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.007308, allocations: 3.984 kB / 1.007 GB, free: 6.703 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.038e-05/0.007349, allocations: 4 kB / 1.007 GB, free: 6.699 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.007382, allocations: 11.98 kB / 1.007 GB, free: 6.688 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.007388, allocations: 4 kB / 1.007 GB, free: 6.684 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.339e-05/0.007422, allocations: 99.2 kB / 1.007 GB, free: 6.586 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.007422, allocations: 0 / 1.007 GB, free: 6.586 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001706/0.007592, allocations: 20 kB / 1.007 GB, free: 6.566 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 9.954e-05/0.007692, allocations: 111.2 kB / 1.007 GB, free: 6.445 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002309/0.007923, allocations: 189 kB / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.007927, allocations: 0 / 1.007 GB, free: 6.242 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.65e-05/0.007994, allocations: 43.91 kB / 1.007 GB, free: 6.199 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.008178, allocations: 21.22 kB / 1.007 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002683/0.008447, allocations: 199 kB / 1.007 GB, free: 5.957 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.302e-05/0.00849, allocations: 75.33 kB / 1.007 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.008512, allocations: 12.5 kB / 1.007 GB, free: 5.852 MB / 0.9636 GB Notification: Performance of SimCode: time 4e-07/0.008512, allocations: 0 / 1.007 GB, free: 5.852 MB / 0.9636 GB Notification: Performance of Templates: time 0.001886/0.0104, allocations: 1.317 MB / 1.009 GB, free: 4.543 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.491402725689113]