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.0009302/0.0009302, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008857/0.0008857, allocations: 177.9 kB / 23.21 MB, free: 1.344 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.8958/0.8958, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.591/1.591, allocations: 359 MB / 0.6044 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0.9517 GB, free: 3.012 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.493e-05/1.658e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.008 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001164/0.00118, allocations: 0.7364 MB / 0.9524 GB, free: 2.266 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.002199, allocations: 1.194 MB / 0.9536 GB, free: 1.059 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.689e-05/0.002246, allocations: 0 / 0.9536 GB, free: 1.059 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/0.002272, allocations: 3.938 kB / 0.9536 GB, free: 1.055 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 5.902e-05/0.002331, allocations: 11.88 kB / 0.9536 GB, free: 1.043 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.002695, allocations: 141.2 kB / 0.9537 GB, free: 0.9062 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.002829, allocations: 127.7 kB / 0.9539 GB, free: 0.7812 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.219e-05/0.002921, allocations: 16.17 kB / 0.9539 GB, free: 0.7617 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 9.639e-05/0.003017, allocations: 71.81 kB / 0.954 GB, free: 0.6914 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 6.781e-05/0.003085, allocations: 35.94 kB / 0.954 GB, free: 0.6562 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.003106, allocations: 12 kB / 0.954 GB, free: 0.6445 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.389e-05/0.00316, allocations: 27.98 kB / 0.954 GB, free: 0.6172 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 2.042e-05/0.003181, allocations: 19.91 kB / 0.954 GB, free: 0.5977 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.003229, allocations: 39.91 kB / 0.9541 GB, free: 0.5586 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.003396, allocations: 147.6 kB / 0.9542 GB, free: 424 kB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.003398, allocations: 0 / 0.9542 GB, free: 424 kB / 0.9011 GB Notification: Performance of FrontEnd: time 7.92e-07/0.003399, allocations: 4 kB / 0.9542 GB, free: 420 kB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.003402, allocations: 0 / 0.9542 GB, free: 420 kB / 0.9011 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.0004118/0.003814, allocations: 341.5 kB / 0.9546 GB, free: 44 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.003846, allocations: 12.03 kB / 0.9546 GB, free: 32 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.003919, allocations: 8.891 kB / 0.9546 GB, free: 24 kB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.337e-05/0.004002, allocations: 129.6 kB / 0.9547 GB, free: 15.87 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.004017, allocations: 8.359 kB / 0.9547 GB, free: 15.86 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.004031, allocations: 12.31 kB / 0.9547 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.004159, allocations: 74.22 kB / 0.9548 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.004174, allocations: 192 / 0.9548 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.004183, allocations: 384 / 0.9548 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.004188, allocations: 4.125 kB / 0.9548 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.872e-05/0.004287, allocations: 47.95 kB / 0.9548 GB, free: 15.72 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003263/0.004613, allocations: 260.4 kB / 0.9551 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.004721, allocations: 62.55 kB / 0.9551 GB, free: 15.37 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.73e-05/0.004768, allocations: 28.91 kB / 0.9552 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.004786, allocations: 4.094 kB / 0.9552 GB, free: 15.33 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001276/0.004914, allocations: 91.25 kB / 0.9553 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.004915, allocations: 0 / 0.9553 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0002679/0.005183, allocations: 153.6 kB / 0.9554 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/0.005214, allocations: 55.41 kB / 0.9555 GB, free: 15.01 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.357e-05/0.005278, allocations: 129.7 kB / 0.9556 GB, free: 14.87 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.005295, allocations: 33.7 kB / 0.9556 GB, free: 14.83 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.199e-05/0.005337, allocations: 96.02 kB / 0.9557 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.664e-05/0.005353, allocations: 19.86 kB / 0.9557 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.0054, allocations: 41.69 kB / 0.9558 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.001e-05/0.00547, allocations: 314.8 kB / 0.9561 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.005572, allocations: 81.66 kB / 0.9561 GB, free: 14.27 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.005682, allocations: 126.1 kB / 0.9563 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.005837, allocations: 146.7 kB / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.00584, allocations: 0 / 0.9564 GB, free: 13.95 MB / 0.9167 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002698/0.00611, allocations: 252.8 kB / 0.9566 GB, free: 13.69 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.006143, allocations: 37.69 kB / 0.9567 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.006148, allocations: 0 / 0.9567 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.006161, allocations: 4 kB / 0.9567 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.359e-05/0.006225, allocations: 19.92 kB / 0.9567 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.00623, allocations: 4 kB / 0.9567 GB, free: 13.62 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.006331, allocations: 36.12 kB / 0.9567 GB, free: 13.58 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.006346, allocations: 11.98 kB / 0.9568 GB, free: 13.57 MB / 0.9167 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.679e-05/0.006412, allocations: 129.2 kB / 0.9569 GB, free: 13.44 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.185e-06/0.006421, allocations: 7.891 kB / 0.9569 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001753/0.006596, allocations: 130.3 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.006598, allocations: 0 / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.006601, allocations: 7.938 kB / 0.957 GB, free: 13.29 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.006604, allocations: 4 kB / 0.957 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/0.006913, allocations: 326.2 kB / 0.9573 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.006914, allocations: 0 / 0.9573 GB, free: 12.93 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.881e-05/0.006943, allocations: 11.92 kB / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.006944, allocations: 0 / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.006951, allocations: 4 kB / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.006952, allocations: 0 / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.006953, allocations: 0 / 0.9573 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.007121, allocations: 219.4 kB / 0.9576 GB, free: 12.68 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 7.795e-06/0.007129, allocations: 7.953 kB / 0.9576 GB, free: 12.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.007141, allocations: 4 kB / 0.9576 GB, free: 12.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.176e-05/0.007183, allocations: 7.984 kB / 0.9576 GB, free: 12.66 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.007217, allocations: 7.984 kB / 0.9576 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.007221, allocations: 0 / 0.9576 GB, free: 12.65 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.39e-05/0.007255, allocations: 91.27 kB / 0.9577 GB, free: 12.56 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.007255, allocations: 0 / 0.9577 GB, free: 12.56 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001703/0.007425, allocations: 28 kB / 0.9577 GB, free: 12.54 MB / 0.9167 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.828e-05/0.007523, allocations: 111.1 kB / 0.9578 GB, free: 12.42 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.007753, allocations: 193 kB / 0.958 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.007755, allocations: 0 / 0.958 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 6.477e-05/0.00782, allocations: 39.97 kB / 0.958 GB, free: 12.17 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.007995, allocations: 12.25 kB / 0.958 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002974/0.008293, allocations: 210.8 kB / 0.9582 GB, free: 11.92 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.566e-05/0.008338, allocations: 75.33 kB / 0.9583 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.008363, allocations: 12.64 kB / 0.9583 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of SimCode: time 4.41e-07/0.008364, allocations: 0 / 0.9583 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of Templates: time 0.001951/0.01031, allocations: 1.322 MB / 0.9596 GB, free: 10.51 MB / 0.9167 GB " [Timeout remaining time 300] 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: 6.347218880429864]