Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001878/0.001878, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.002482/0.002482, allocations: 186.3 kB / 22.22 MB, free: 5.105 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.645/1.645, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.948/2.948, allocations: 476.7 MB / 0.7646 GB, free: 9.852 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 71.89 kB / 1.11 GB, free: 6.332 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.103/1.106, allocations: 168.8 MB / 1.274 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002568/1.108, allocations: 0.7575 MB / 1.275 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002115/1.11, allocations: 1.172 MB / 1.276 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.89e-05/1.11, allocations: 3.938 kB / 1.276 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.649e-05/1.11, allocations: 3.938 kB / 1.276 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.539e-05/1.11, allocations: 15.86 kB / 1.276 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006573/1.111, allocations: 134.9 kB / 1.276 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/1.111, allocations: 127.7 kB / 1.276 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/1.111, allocations: 24.17 kB / 1.277 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001085/1.112, allocations: 47.91 kB / 1.277 GB, free: 1.914 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/1.112, allocations: 51.8 kB / 1.277 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.015e-05/1.112, allocations: 12 kB / 1.277 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/1.112, allocations: 23.98 kB / 1.277 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.588e-05/1.112, allocations: 12 kB / 1.277 GB, free: 1.816 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.104e-05/1.112, allocations: 47.78 kB / 1.277 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002288/1.112, allocations: 129.9 kB / 1.277 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/1.112, allocations: 0 / 1.277 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.513e-06/1.112, allocations: 0 / 1.277 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.252e-06/1.112, allocations: 0 / 1.277 GB, free: 1.648 MB / 0.9669 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.0006932/1.113, allocations: 351.7 kB / 1.277 GB, free: 1.27 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.113, allocations: 12.03 kB / 1.277 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.76e-05/1.113, allocations: 8.891 kB / 1.277 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/1.113, allocations: 110.5 kB / 1.277 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/1.113, allocations: 4.375 kB / 1.277 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/1.113, allocations: 12.38 kB / 1.277 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/1.113, allocations: 78.14 kB / 1.277 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/1.113, allocations: 7.938 kB / 1.277 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/1.113, allocations: 4 kB / 1.277 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/1.113, allocations: 0 / 1.277 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/1.114, allocations: 47.95 kB / 1.277 GB, free: 0.9609 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/1.114, allocations: 307.7 kB / 1.278 GB, free: 0.6172 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/1.114, allocations: 58.55 kB / 1.278 GB, free: 0.5508 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/1.114, allocations: 32.95 kB / 1.278 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/1.114, allocations: 0 / 1.278 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/1.115, allocations: 91.34 kB / 1.278 GB, free: 424 kB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.403e-06/1.115, allocations: 3.938 kB / 1.278 GB, free: 420 kB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004889/1.115, allocations: 157.5 kB / 1.278 GB, free: 256 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/1.115, allocations: 51.41 kB / 1.278 GB, free: 192 kB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/1.115, allocations: 121.8 kB / 1.278 GB, free: 60 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/1.115, allocations: 33.64 kB / 1.278 GB, free: 20 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/1.115, allocations: 92.09 kB / 1.278 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/1.115, allocations: 23.83 kB / 1.278 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/1.116, allocations: 41.7 kB / 1.278 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002216/1.116, allocations: 326.8 kB / 1.279 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/1.116, allocations: 47.97 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/1.116, allocations: 96.42 kB / 1.279 GB, free: 15.37 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/1.116, allocations: 146.8 kB / 1.279 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/1.116, allocations: 4 kB / 1.279 GB, free: 15.2 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004678/1.117, allocations: 223.1 kB / 1.279 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/1.117, allocations: 39.73 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.351e-06/1.117, allocations: 0 / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/1.117, allocations: 4 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/1.117, allocations: 15.98 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/1.117, allocations: 7.938 kB / 1.279 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/1.117, allocations: 40.06 kB / 1.279 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/1.117, allocations: 12 kB / 1.279 GB, free: 14.85 MB / 0.9825 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.0001311/1.117, allocations: 120 kB / 1.279 GB, free: 14.72 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.694e-05/1.117, allocations: 7.984 kB / 1.279 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003158/1.118, allocations: 125.9 kB / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/1.118, allocations: 4 kB / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.118, allocations: 0 / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/1.118, allocations: 0 / 1.28 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000575/1.118, allocations: 353.5 kB / 1.28 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/1.118, allocations: 0 / 1.28 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/1.118, allocations: 15.92 kB / 1.28 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/1.118, allocations: 0 / 1.28 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/1.118, allocations: 4 kB / 1.28 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/1.118, allocations: 4 kB / 1.28 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/1.118, allocations: 7.875 kB / 1.28 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/1.119, allocations: 203.5 kB / 1.28 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.301e-05/1.119, allocations: 7.953 kB / 1.28 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/1.119, allocations: 4 kB / 1.28 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.233e-05/1.119, allocations: 7.984 kB / 1.28 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/1.119, allocations: 15.92 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/1.119, allocations: 0 / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001603/1.119, allocations: 91.81 kB / 1.28 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/1.119, allocations: 4 kB / 1.28 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002657/1.119, allocations: 27.95 kB / 1.28 GB, free: 13.78 MB / 0.9825 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.0001618/1.12, allocations: 103.2 kB / 1.28 GB, free: 13.67 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004443/1.12, allocations: 175.7 kB / 1.281 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.12, allocations: 0 / 1.281 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/1.12, allocations: 31.98 kB / 1.281 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/1.12, allocations: 18.88 kB / 1.281 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004848/1.121, allocations: 183.3 kB / 1.281 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/1.121, allocations: 0.6924 MB / 1.281 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.31e-05/1.121, allocations: 7.984 kB / 1.281 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/1.121, allocations: 15.38 kB / 1.281 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/1.121, allocations: 0 / 1.281 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of Templates: time 0.005134/1.126, allocations: 1.473 MB / 1.283 GB, free: 11.03 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 10.02785530872643]