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.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.001833/0.001833, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002315/0.002315, allocations: 216.2 kB / 23.01 MB, free: 4.609 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.441/1.441, allocations: 230.6 MB / 256.8 MB, free: 8.047 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.774/2.774, allocations: 476.7 MB / 0.7714 GB, free: 4.285 MB / 0.6231 GB " [Timeout remaining time 177] 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.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_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: 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.001983/0.001983, allocations: 65.97 kB / 1.119 GB, free: 40.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3382, allocations: 170 MB / 1.285 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002001/0.3402, allocations: 0.7496 MB / 1.285 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001579/0.3418, allocations: 1.211 MB / 1.287 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.041e-05/0.3419, allocations: 8 kB / 1.287 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.3419, allocations: 3.938 kB / 1.287 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.097e-05/0.342, allocations: 7.875 kB / 1.287 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.3425, allocations: 136.3 kB / 1.287 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001897/0.3427, allocations: 131.7 kB / 1.287 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3428, allocations: 16.17 kB / 1.287 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.878e-05/0.3429, allocations: 55.83 kB / 1.287 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.343, allocations: 47.83 kB / 1.287 GB, free: 8.902 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.343, allocations: 16 kB / 1.287 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.454e-05/0.3431, allocations: 27.98 kB / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.923e-05/0.3431, allocations: 19.92 kB / 1.287 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.433e-05/0.3432, allocations: 47.83 kB / 1.287 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.3434, allocations: 123.5 kB / 1.287 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3434, allocations: 0 / 1.287 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3434, allocations: 0 / 1.287 GB, free: 8.672 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.3434, allocations: 4 kB / 1.287 GB, free: 8.668 MB / 0.9825 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.0005714/0.344, allocations: 335.8 kB / 1.287 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.344, allocations: 16.03 kB / 1.287 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.744e-05/0.3441, allocations: 16.88 kB / 1.287 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3442, allocations: 122.3 kB / 1.288 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3442, allocations: 8.375 kB / 1.288 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.3442, allocations: 4.375 kB / 1.288 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.3444, allocations: 70.22 kB / 1.288 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3444, allocations: 3.938 kB / 1.288 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.3445, allocations: 7.938 kB / 1.288 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.3445, allocations: 0 / 1.288 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.3446, allocations: 55.89 kB / 1.288 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.3451, allocations: 315.7 kB / 1.288 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3453, allocations: 58.58 kB / 1.288 GB, free: 7.559 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.683e-05/0.3454, allocations: 28.97 kB / 1.288 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.936e-05/0.3454, allocations: 0 / 1.288 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.3457, allocations: 87.36 kB / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.3457, allocations: 0 / 1.288 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004594/0.3461, allocations: 157.5 kB / 1.288 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.3462, allocations: 59.41 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.3463, allocations: 117.8 kB / 1.289 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.3463, allocations: 29.7 kB / 1.289 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.806e-05/0.3464, allocations: 104 kB / 1.289 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.3464, allocations: 19.86 kB / 1.289 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.748e-05/0.3465, allocations: 41.69 kB / 1.289 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3466, allocations: 318.8 kB / 1.289 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.3468, allocations: 59.95 kB / 1.289 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.3469, allocations: 89.11 kB / 1.289 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003/0.3472, allocations: 150.8 kB / 1.289 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3473, allocations: 3.938 kB / 1.289 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004603/0.3477, allocations: 211.3 kB / 1.29 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.778e-05/0.3478, allocations: 41.69 kB / 1.29 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3478, allocations: 0 / 1.29 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.3478, allocations: 4 kB / 1.29 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3479, allocations: 15.98 kB / 1.29 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3479, allocations: 0 / 1.29 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.3481, allocations: 31.97 kB / 1.29 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.3481, allocations: 16.02 kB / 1.29 GB, free: 5.875 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.000112/0.3482, allocations: 133.6 kB / 1.29 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.3482, allocations: 7.953 kB / 1.29 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003112/0.3486, allocations: 129.9 kB / 1.29 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3486, allocations: 4.047 kB / 1.29 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3486, allocations: 3.984 kB / 1.29 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3486, allocations: 0 / 1.29 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/0.349, allocations: 349.5 kB / 1.29 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.349, allocations: 0 / 1.29 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.223e-05/0.3491, allocations: 7.984 kB / 1.29 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3491, allocations: 4 kB / 1.29 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.3491, allocations: 0 / 1.29 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3491, allocations: 3.984 kB / 1.29 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3491, allocations: 3.938 kB / 1.29 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.3494, allocations: 223.4 kB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.403e-05/0.3494, allocations: 11.95 kB / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.3495, allocations: 0 / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.3495, allocations: 7.984 kB / 1.29 GB, free: 4.918 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.3496, allocations: 11.92 kB / 1.29 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-06/0.3496, allocations: 4 kB / 1.29 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.272e-05/0.3497, allocations: 99.27 kB / 1.291 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3497, allocations: 0 / 1.291 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002683/0.3499, allocations: 20 kB / 1.291 GB, free: 4.785 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.000133/0.3501, allocations: 103.2 kB / 1.291 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003805/0.3505, allocations: 163.3 kB / 1.291 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3505, allocations: 320 / 1.291 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.3506, allocations: 44.45 kB / 1.291 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.3509, allocations: 16.19 kB / 1.291 GB, free: 4.449 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003984/0.3513, allocations: 214.6 kB / 1.291 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.3516, allocations: 0.6885 MB / 1.292 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.952e-05/0.3516, allocations: 15.44 kB / 1.292 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3516, allocations: 3.938 kB / 1.292 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of Templates: time 0.003266/0.3549, allocations: 1.3 MB / 1.293 GB, free: 2.188 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/jenkins1/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.962799173983512]