Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008139/0.0008139, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001108/0.001921, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006997/0.0006997, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009211/0.001621, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9267/0.9267, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07798/1.005, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.351/2.351, allocations: 447.1 MB / 0.675 GB, free: 5.91 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2421/2.593, allocations: 146 MB / 0.8176 GB, free: 3.824 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.8189 GB, free: 2.523 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.096e-05/1.274e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.52 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001626/0.001639, allocations: 0.7235 MB / 0.8196 GB, free: 1.793 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.002913, allocations: 1.12 MB / 0.8207 GB, free: 0.6602 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.382e-05/0.002957, allocations: 0 / 0.8207 GB, free: 0.6602 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 2.808e-05/0.002985, allocations: 3.938 kB / 0.8207 GB, free: 0.6562 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 4.542e-05/0.003031, allocations: 7.875 kB / 0.8207 GB, free: 0.6484 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.003225, allocations: 47.75 kB / 0.8208 GB, free: 0.6016 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 9.722e-05/0.003323, allocations: 47.86 kB / 0.8208 GB, free: 0.5547 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 8.569e-05/0.003408, allocations: 4 kB / 0.8208 GB, free: 0.5508 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.003521, allocations: 39.89 kB / 0.8208 GB, free: 0.5117 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 5.77e-05/0.003579, allocations: 11.98 kB / 0.8209 GB, free: 0.5 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.003596, allocations: 4 kB / 0.8209 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.003688, allocations: 27.92 kB / 0.8209 GB, free: 480 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.003711, allocations: 7.938 kB / 0.8209 GB, free: 472 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.003735, allocations: 8 kB / 0.8209 GB, free: 464 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.00387, allocations: 47.83 kB / 0.8209 GB, free: 416 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.141e-05/0.003882, allocations: 0 / 0.8209 GB, free: 416 kB / 0.7917 GB Notification: Performance of FrontEnd: time 5.71e-07/0.003882, allocations: 0 / 0.8209 GB, free: 416 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.34e-05/0.003896, allocations: 0 / 0.8209 GB, free: 416 kB / 0.7917 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.0004887/0.004384, allocations: 276.4 kB / 0.8212 GB, free: 112 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.004416, allocations: 12.03 kB / 0.8212 GB, free: 100 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.004567, allocations: 90.03 kB / 0.8213 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.167e-05/0.004658, allocations: 117.7 kB / 0.8214 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.004668, allocations: 384 / 0.8214 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.004683, allocations: 8.312 kB / 0.8214 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.004803, allocations: 66.92 kB / 0.8215 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.00481, allocations: 192 / 0.8215 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.875e-06/0.004818, allocations: 384 / 0.8215 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.004823, allocations: 384 / 0.8215 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.205e-05/0.004855, allocations: 15.94 kB / 0.8215 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002641/0.005119, allocations: 164.2 kB / 0.8217 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.321e-05/0.005193, allocations: 30.52 kB / 0.8217 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.037e-05/0.005213, allocations: 13.05 kB / 0.8217 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.00523, allocations: 8 kB / 0.8217 GB, free: 15.52 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.593e-05/0.005316, allocations: 55.38 kB / 0.8218 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.633e-06/0.005318, allocations: 3.938 kB / 0.8218 GB, free: 15.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0001293/0.005447, allocations: 61.56 kB / 0.8218 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.005487, allocations: 51.41 kB / 0.8219 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.005801, allocations: 115.1 kB / 0.822 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.005814, allocations: 25.7 kB / 0.822 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.00585, allocations: 84.14 kB / 0.8221 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.005874, allocations: 15.89 kB / 0.8221 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.005914, allocations: 25.7 kB / 0.8221 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.006, allocations: 314.8 kB / 0.8224 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.738e-05/0.006017, allocations: 7.984 kB / 0.8224 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.366e-05/0.006051, allocations: 35.48 kB / 0.8225 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.175e-05/0.006113, allocations: 55.33 kB / 0.8225 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.006115, allocations: 0 / 0.8225 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8) (initialization): time 9.379e-05/0.006209, allocations: 65.56 kB / 0.8226 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.006222, allocations: 4 kB / 0.8226 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.006226, allocations: 0 / 0.8226 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.006241, allocations: 7.938 kB / 0.8226 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.777e-05/0.006319, allocations: 11.98 kB / 0.8226 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.447e-06/0.006322, allocations: 0 / 0.8226 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.852e-05/0.006361, allocations: 15.88 kB / 0.8226 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.006371, allocations: 8.094 kB / 0.8226 GB, free: 14.47 MB / 0.8073 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 6.215e-05/0.006433, allocations: 113.8 kB / 0.8227 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.006445, allocations: 4 kB / 0.8227 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.759e-05/0.006533, allocations: 58.05 kB / 0.8228 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.006536, allocations: 3.938 kB / 0.8228 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.006537, allocations: 0 / 0.8228 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.006541, allocations: 0 / 0.8228 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.006723, allocations: 202.8 kB / 0.823 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.006724, allocations: 0 / 0.823 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.006762, allocations: 12.03 kB / 0.823 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-06/0.006771, allocations: 15.88 kB / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.006773, allocations: 0 / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.006779, allocations: 4 kB / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.006781, allocations: 0 / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.006782, allocations: 0 / 0.823 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.102e-05/0.006873, allocations: 139.7 kB / 0.8232 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.006889, allocations: 19.94 kB / 0.8232 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.81e-05/0.006957, allocations: 4 kB / 0.8232 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.797e-05/0.006985, allocations: 7.922 kB / 0.8232 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.006994, allocations: 0 / 0.8232 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.751e-05/0.007011, allocations: 20.83 kB / 0.8232 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.007011, allocations: 4 kB / 0.8232 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002348/0.007246, allocations: 12 kB / 0.8232 GB, free: 13.8 MB / 0.8073 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.0001128/0.007359, allocations: 84.36 kB / 0.8233 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.25e-05/0.007441, allocations: 28.84 kB / 0.8233 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.007447, allocations: 4 kB / 0.8233 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.251e-05/0.007489, allocations: 20.78 kB / 0.8234 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.007679, allocations: 60.94 kB / 0.8234 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007636/0.008442, allocations: 152.5 kB / 0.8236 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.002e-05/0.008482, allocations: 63.2 kB / 0.8236 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.665e-05/0.008509, allocations: 4 kB / 0.8236 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.008563, allocations: 59.36 kB / 0.8237 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of SimCode: time 7.41e-07/0.008564, allocations: 0 / 0.8237 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of Templates: time 0.002765/0.01133, allocations: 0.8587 MB / 0.8245 GB, free: 12.41 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.012568465434015]