Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001845/0.001845, allocations: 78.48 kB / 19.18 MB, free: 2.527 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.002132/0.002132, allocations: 170.4 kB / 22.46 MB, free: 5.359 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.496/1.496, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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 2.675/2.675, allocations: 359 MB / 0.6037 GB, free: 15 MB / 0.5762 GB " [Timeout remaining time 177] 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.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 6.442e-06/6.442e-06, allocations: 3.984 kB / 0.951 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.963e-05/3.607e-05, allocations: 2.281 kB / 0.951 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001934/0.00197, allocations: 0.6507 MB / 0.9516 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001763/0.003733, allocations: 1.097 MB / 0.9527 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.231e-05/0.003786, allocations: 0 / 0.9527 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.003816, allocations: 3.984 kB / 0.9527 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.107e-05/0.003897, allocations: 7.875 kB / 0.9527 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.004244, allocations: 43.77 kB / 0.9527 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00012/0.004364, allocations: 51.84 kB / 0.9528 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.625e-05/0.00446, allocations: 11.98 kB / 0.9528 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.004561, allocations: 19.98 kB / 0.9528 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.826e-05/0.004619, allocations: 23.91 kB / 0.9528 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.005e-05/0.004639, allocations: 4 kB / 0.9528 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.621e-05/0.004716, allocations: 19.98 kB / 0.9528 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.00474, allocations: 11.98 kB / 0.9529 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.93e-05/0.004779, allocations: 15.92 kB / 0.9529 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.004958, allocations: 67.83 kB / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.004962, allocations: 0 / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.41e-07/0.004962, allocations: 0 / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.004967, allocations: 0 / 0.9529 GB, free: 9.562 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006633/0.00563, allocations: 294.1 kB / 0.9532 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.005671, allocations: 12.03 kB / 0.9532 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.981e-05/0.00577, allocations: 4.938 kB / 0.9532 GB, free: 9.227 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.005895, allocations: 117.6 kB / 0.9533 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.005912, allocations: 4.375 kB / 0.9534 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.005923, allocations: 4.312 kB / 0.9534 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.006141, allocations: 66.22 kB / 0.9534 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.006152, allocations: 192 / 0.9534 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.006163, allocations: 384 / 0.9534 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.006167, allocations: 384 / 0.9534 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.00638, allocations: 51.89 kB / 0.9535 GB, free: 8.957 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004548/0.006835, allocations: 208.6 kB / 0.9537 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.007059, allocations: 54.48 kB / 0.9537 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.007177, allocations: 24.97 kB / 0.9537 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.007213, allocations: 4 kB / 0.9537 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002854/0.007498, allocations: 79.25 kB / 0.9538 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.783e-06/0.0075, allocations: 0 / 0.9538 GB, free: 8.539 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005357/0.008036, allocations: 133.5 kB / 0.954 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.008097, allocations: 51.41 kB / 0.954 GB, free: 8.34 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.0082, allocations: 106.1 kB / 0.9541 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.008221, allocations: 25.7 kB / 0.9541 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/0.008287, allocations: 84.14 kB / 0.9542 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.008317, allocations: 23.89 kB / 0.9542 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/0.008371, allocations: 21.72 kB / 0.9543 GB, free: 8.059 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.008521, allocations: 314.8 kB / 0.9546 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.008628, allocations: 28.22 kB / 0.9546 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.008753, allocations: 51.41 kB / 0.9546 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.008975, allocations: 87.33 kB / 0.9547 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.008977, allocations: 0 / 0.9547 GB, free: 7.555 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002944/0.009271, allocations: 105.5 kB / 0.9548 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.009292, allocations: 11.94 kB / 0.9548 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.009298, allocations: 0 / 0.9548 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.009315, allocations: 0 / 0.9548 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.009429, allocations: 15.98 kB / 0.9548 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.009436, allocations: 3.984 kB / 0.9548 GB, free: 7.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.591e-05/0.009502, allocations: 4 kB / 0.9548 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.009515, allocations: 4 kB / 0.9548 GB, free: 7.406 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 9.804e-05/0.009613, allocations: 117.9 kB / 0.955 GB, free: 7.281 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.009633, allocations: 11.92 kB / 0.955 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003062/0.009939, allocations: 102 kB / 0.9551 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.009944, allocations: 4 kB / 0.9551 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.009948, allocations: 3.938 kB / 0.9551 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.009956, allocations: 4.031 kB / 0.9551 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004475/0.0104, allocations: 298.1 kB / 0.9554 GB, free: 6.824 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.0104, allocations: 4 kB / 0.9554 GB, free: 6.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.536e-05/0.01047, allocations: 11.98 kB / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.01047, allocations: 0 / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.01048, allocations: 0 / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01048, allocations: 0 / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01048, allocations: 0 / 0.9554 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000328/0.01081, allocations: 195.4 kB / 0.9556 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.211e-05/0.01082, allocations: 8.141 kB / 0.9556 GB, free: 6.594 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.01084, allocations: 4 kB / 0.9556 GB, free: 6.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.734e-05/0.01094, allocations: 11.98 kB / 0.9556 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.01099, allocations: 11.98 kB / 0.9556 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.011, allocations: 0 / 0.9556 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.272e-05/0.01106, allocations: 83.22 kB / 0.9557 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01106, allocations: 3.938 kB / 0.9557 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002543/0.01131, allocations: 19.94 kB / 0.9557 GB, free: 6.461 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001729/0.01148, allocations: 99.23 kB / 0.9558 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000288/0.01177, allocations: 67.89 kB / 0.9559 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.01177, allocations: 0 / 0.9559 GB, free: 6.285 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.01189, allocations: 31.97 kB / 0.9559 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.01217, allocations: 11.88 kB / 0.9559 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000403/0.01257, allocations: 136.8 kB / 0.956 GB, free: 6.082 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.503e-05/0.01265, allocations: 63.53 kB / 0.9561 GB, free: 6 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.054e-05/0.01268, allocations: 8 kB / 0.9561 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.01272, allocations: 16.5 kB / 0.9561 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of SimCode: time 4.41e-07/0.01272, allocations: 0 / 0.9561 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of Templates: time 0.004175/0.01689, allocations: 0.8279 MB / 0.9569 GB, free: 5.164 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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: 8.067830357700586]