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.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.001807/0.001807, allocations: 111.6 kB / 17.08 MB, free: 5.98 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.002164/0.002164, allocations: 194.2 kB / 20.03 MB, free: 3.051 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.497/1.497, allocations: 222.9 MB / 245.7 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.132/3.132, allocations: 489.3 MB / 0.7687 GB, free: 3.797 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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 0.00207/0.00207, allocations: 75.88 kB / 1.103 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.068/1.07, allocations: 163.8 MB / 1.263 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002107/1.072, allocations: 0.7561 MB / 1.263 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001598/1.074, allocations: 1.155 MB / 1.264 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.427e-05/1.074, allocations: 1.812 kB / 1.264 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.005e-05/1.074, allocations: 10.19 kB / 1.264 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.07e-05/1.074, allocations: 14.12 kB / 1.264 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/1.075, allocations: 139.6 kB / 1.265 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002215/1.075, allocations: 133.5 kB / 1.265 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/1.075, allocations: 24.27 kB / 1.265 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/1.075, allocations: 50.3 kB / 1.265 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/1.075, allocations: 46.28 kB / 1.265 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/1.075, allocations: 11.69 kB / 1.265 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.377e-05/1.076, allocations: 29.38 kB / 1.265 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.713e-05/1.076, allocations: 13.7 kB / 1.265 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.631e-05/1.076, allocations: 44.7 kB / 1.265 GB, free: 6.426 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000221/1.076, allocations: 122.6 kB / 1.265 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/1.076, allocations: 4.719 kB / 1.265 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.393e-06/1.076, allocations: 0 / 1.265 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.957e-06/1.076, allocations: 4.719 kB / 1.265 GB, free: 6.379 MB / 0.9981 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.0005562/1.077, allocations: 418.4 kB / 1.265 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/1.077, allocations: 9.281 kB / 1.265 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.704e-05/1.077, allocations: 11.28 kB / 1.265 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.677e-05/1.077, allocations: 177.9 kB / 1.266 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/1.077, allocations: 9.125 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/1.077, allocations: 7.469 kB / 1.266 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/1.077, allocations: 76.89 kB / 1.266 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/1.077, allocations: 3.938 kB / 1.266 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/1.077, allocations: 5.312 kB / 1.266 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/1.077, allocations: 5.281 kB / 1.266 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/1.077, allocations: 50.72 kB / 1.266 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/1.078, allocations: 342 kB / 1.266 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/1.078, allocations: 63.77 kB / 1.266 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/1.078, allocations: 34.62 kB / 1.266 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/1.078, allocations: 0 / 1.266 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/1.078, allocations: 84.33 kB / 1.266 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/1.078, allocations: 4 kB / 1.266 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004715/1.079, allocations: 154.5 kB / 1.266 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/1.079, allocations: 54.61 kB / 1.266 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.718e-05/1.079, allocations: 124.5 kB / 1.267 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/1.079, allocations: 33.7 kB / 1.267 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/1.079, allocations: 94.14 kB / 1.267 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/1.079, allocations: 24.12 kB / 1.267 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.697e-05/1.079, allocations: 39.06 kB / 1.267 GB, free: 4.855 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.498e-05/1.079, allocations: 318.8 kB / 1.267 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/1.079, allocations: 54.16 kB / 1.267 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/1.08, allocations: 87.8 kB / 1.267 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/1.08, allocations: 152.9 kB / 1.267 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.08, allocations: 0 / 1.267 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000468/1.08, allocations: 215.1 kB / 1.268 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.63e-05/1.08, allocations: 35.7 kB / 1.268 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/1.08, allocations: 1.562 kB / 1.268 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/1.08, allocations: 2.375 kB / 1.268 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/1.08, allocations: 14.61 kB / 1.268 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/1.081, allocations: 1.844 kB / 1.268 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/1.081, allocations: 43.75 kB / 1.268 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/1.081, allocations: 8.469 kB / 1.268 GB, free: 4.191 MB / 0.9981 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 7.669e-05/1.081, allocations: 130.1 kB / 1.268 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/1.081, allocations: 7.219 kB / 1.268 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/1.081, allocations: 142.4 kB / 1.268 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/1.081, allocations: 2.359 kB / 1.268 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.081, allocations: 0 / 1.268 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/1.081, allocations: 1.172 kB / 1.268 GB, free: 3.977 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003942/1.082, allocations: 375.7 kB / 1.268 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/1.082, allocations: 0.8438 kB / 1.268 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.47e-05/1.082, allocations: 13.83 kB / 1.268 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/1.082, allocations: 0 / 1.268 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/1.082, allocations: 10.25 kB / 1.268 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/1.082, allocations: 1.031 kB / 1.268 GB, free: 3.633 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.082, allocations: 3.938 kB / 1.268 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/1.082, allocations: 214.7 kB / 1.269 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.471e-05/1.082, allocations: 79.75 kB / 1.269 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.82e-05/1.082, allocations: 2.203 kB / 1.269 GB, free: 3.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.102e-05/1.082, allocations: 11.12 kB / 1.269 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.764e-05/1.082, allocations: 13 kB / 1.269 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/1.082, allocations: 8 kB / 1.269 GB, free: 3.363 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.102e-05/1.082, allocations: 90.44 kB / 1.269 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.082, allocations: 0 / 1.269 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002855/1.083, allocations: 25.28 kB / 1.269 GB, free: 3.281 MB / 0.9981 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.0001406/1.083, allocations: 105.7 kB / 1.269 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004157/1.083, allocations: 180.3 kB / 1.269 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.083, allocations: 4 kB / 1.269 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/1.083, allocations: 43.53 kB / 1.269 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/1.084, allocations: 11.62 kB / 1.269 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/1.084, allocations: 209.3 kB / 1.269 GB, free: 2.895 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/1.084, allocations: 0.6893 MB / 1.27 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.154e-05/1.084, allocations: 15.73 kB / 1.27 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/1.084, allocations: 0 / 1.27 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of Templates: time 0.003634/1.088, allocations: 1.289 MB / 1.271 GB, free: 2.078 MB / 0.9981 GB " [Timeout remaining time 299] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 11.84913062513806]