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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 189.9 kB / 22.1 MB, free: 5.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.662/1.662, allocations: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.226/3.226, allocations: 495.8 MB / 0.783 GB, free: 33.75 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 68.89 kB / 1.137 GB, free: 33.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.4543, allocations: 173.6 MB / 1.307 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002352/0.4566, allocations: 0.7628 MB / 1.307 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001851/0.4585, allocations: 1.166 MB / 1.309 GB, free: 15.92 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.248e-05/0.4585, allocations: 0 / 1.309 GB, free: 15.92 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.038e-05/0.4586, allocations: 7.922 kB / 1.309 GB, free: 15.91 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.301e-05/0.4587, allocations: 11.88 kB / 1.309 GB, free: 15.9 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005983/0.4593, allocations: 130.2 kB / 1.309 GB, free: 15.78 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000296/0.4596, allocations: 131.7 kB / 1.309 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.4597, allocations: 16.17 kB / 1.309 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.4598, allocations: 55.84 kB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.4599, allocations: 55.8 kB / 1.309 GB, free: 15.52 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.46, allocations: 8 kB / 1.309 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.323e-05/0.46, allocations: 20 kB / 1.309 GB, free: 15.49 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.329e-05/0.4601, allocations: 23.86 kB / 1.309 GB, free: 15.47 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 8.346e-05/0.4602, allocations: 47.83 kB / 1.309 GB, free: 15.42 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.4604, allocations: 123.5 kB / 1.309 GB, free: 15.3 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4604, allocations: 0 / 1.309 GB, free: 15.3 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.425e-06/0.4604, allocations: 0 / 1.309 GB, free: 15.3 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.4604, allocations: 4 kB / 1.309 GB, free: 15.3 MB / 1.014 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.0007049/0.4611, allocations: 347.7 kB / 1.31 GB, free: 14.92 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4612, allocations: 8.922 kB / 1.31 GB, free: 14.91 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.165e-05/0.4612, allocations: 12.89 kB / 1.31 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.4614, allocations: 114.5 kB / 1.31 GB, free: 14.77 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.4614, allocations: 4.375 kB / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.178e-05/0.4615, allocations: 8.375 kB / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.4617, allocations: 78.16 kB / 1.31 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.4617, allocations: 3.938 kB / 1.31 GB, free: 14.67 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.4617, allocations: 4 kB / 1.31 GB, free: 14.66 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.4617, allocations: 0 / 1.31 GB, free: 14.66 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.4619, allocations: 51.89 kB / 1.31 GB, free: 14.61 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006104/0.4625, allocations: 315.7 kB / 1.31 GB, free: 14.26 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.4627, allocations: 62.58 kB / 1.31 GB, free: 14.19 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.4628, allocations: 28.97 kB / 1.31 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.4629, allocations: 7.969 kB / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.4632, allocations: 87.31 kB / 1.31 GB, free: 14.05 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.4632, allocations: 4 kB / 1.31 GB, free: 14.05 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0005329/0.4638, allocations: 153.5 kB / 1.31 GB, free: 13.89 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.4638, allocations: 59.41 kB / 1.311 GB, free: 13.82 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.4639, allocations: 113.8 kB / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.464, allocations: 29.7 kB / 1.311 GB, free: 13.67 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.689e-05/0.4641, allocations: 96.08 kB / 1.311 GB, free: 13.57 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.29e-05/0.4641, allocations: 27.83 kB / 1.311 GB, free: 13.54 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.6e-05/0.4642, allocations: 41.69 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000197/0.4644, allocations: 318.8 kB / 1.311 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.4646, allocations: 51.95 kB / 1.311 GB, free: 13.12 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.4648, allocations: 89.11 kB / 1.311 GB, free: 13.02 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.4651, allocations: 150.8 kB / 1.311 GB, free: 12.85 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.4651, allocations: 0 / 1.311 GB, free: 12.85 MB / 1.014 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005063/0.4656, allocations: 215.1 kB / 1.312 GB, free: 12.62 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/0.4656, allocations: 47.5 kB / 1.312 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.4656, allocations: 0 / 1.312 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.4657, allocations: 4 kB / 1.312 GB, free: 12.57 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.4658, allocations: 15.98 kB / 1.312 GB, free: 12.55 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4658, allocations: 0 / 1.312 GB, free: 12.55 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.466, allocations: 44.02 kB / 1.312 GB, free: 12.51 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.466, allocations: 12.3 kB / 1.312 GB, free: 12.5 MB / 1.014 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.0001352/0.4662, allocations: 134.9 kB / 1.312 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.4662, allocations: 4 kB / 1.312 GB, free: 12.36 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003571/0.4666, allocations: 130 kB / 1.312 GB, free: 12.22 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.4666, allocations: 4 kB / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4666, allocations: 0 / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.4666, allocations: 0 / 1.312 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005715/0.4671, allocations: 349.5 kB / 1.312 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4671, allocations: 0 / 1.312 GB, free: 11.82 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.905e-05/0.4672, allocations: 11.98 kB / 1.312 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.4672, allocations: 0 / 1.312 GB, free: 11.81 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.4672, allocations: 12 kB / 1.312 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4672, allocations: 4 kB / 1.312 GB, free: 11.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4672, allocations: 3.938 kB / 1.312 GB, free: 11.79 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003754/0.4676, allocations: 215.4 kB / 1.313 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.752e-05/0.4676, allocations: 11.89 kB / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.4677, allocations: 0 / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.029e-05/0.4677, allocations: 11.98 kB / 1.313 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.4678, allocations: 15.92 kB / 1.313 GB, free: 11.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.4678, allocations: 4 kB / 1.313 GB, free: 11.52 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.251e-05/0.4679, allocations: 87.83 kB / 1.313 GB, free: 11.44 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.4679, allocations: 0 / 1.313 GB, free: 11.44 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002826/0.4682, allocations: 31.94 kB / 1.313 GB, free: 11.41 MB / 1.014 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 0.0001701/0.4683, allocations: 100 kB / 1.313 GB, free: 11.3 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000416/0.4687, allocations: 163.3 kB / 1.313 GB, free: 11.13 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4687, allocations: 0 / 1.313 GB, free: 11.13 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.4689, allocations: 39.91 kB / 1.313 GB, free: 11.09 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.4692, allocations: 18.5 kB / 1.313 GB, free: 11.07 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.4697, allocations: 184.7 kB / 1.313 GB, free: 10.87 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.4701, allocations: 0.6972 MB / 1.314 GB, free: 10.15 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.408e-05/0.4701, allocations: 4 kB / 1.314 GB, free: 10.14 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.4702, allocations: 11.44 kB / 1.314 GB, free: 10.13 MB / 1.014 GB Notification: Performance of SimCode: time 3.41e-07/0.4702, allocations: 0 / 1.314 GB, free: 10.13 MB / 1.014 GB Notification: Performance of Templates: time 0.004758/0.4749, allocations: 1.467 MB / 1.315 GB, free: 8.676 MB / 1.014 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/jenkins/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.918647577986121]