Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.001558/0.001558, allocations: 106.1 kB / 17.08 MB, free: 5.844 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.001604/0.001605, allocations: 194.2 kB / 20.03 MB, free: 2.945 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.461/1.461, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.673/2.673, allocations: 437.1 MB / 0.7177 GB, free: 4.562 MB / 0.5606 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.88 kB / 1.028 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3083, allocations: 151.6 MB / 1.176 GB, free: 5.949 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001717/0.31, allocations: 0.658 MB / 1.176 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3114, allocations: 1.055 MB / 1.178 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.226e-05/0.3115, allocations: 0 / 1.178 GB, free: 4.211 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.701e-05/0.3115, allocations: 3.938 kB / 1.178 GB, free: 4.207 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.736e-05/0.3116, allocations: 3.938 kB / 1.178 GB, free: 4.203 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.3119, allocations: 43.83 kB / 1.178 GB, free: 4.16 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.312, allocations: 51.84 kB / 1.178 GB, free: 4.109 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.428e-05/0.3121, allocations: 4 kB / 1.178 GB, free: 4.105 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.956e-05/0.3122, allocations: 27.91 kB / 1.178 GB, free: 4.078 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.321e-05/0.3122, allocations: 23.86 kB / 1.178 GB, free: 4.055 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.3122, allocations: 4 kB / 1.178 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 7.104e-05/0.3123, allocations: 19.98 kB / 1.178 GB, free: 4.031 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.251e-05/0.3123, allocations: 11.92 kB / 1.178 GB, free: 4.02 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.904e-05/0.3124, allocations: 19.94 kB / 1.178 GB, free: 4 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.3125, allocations: 55.72 kB / 1.178 GB, free: 3.945 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3125, allocations: 3.984 kB / 1.178 GB, free: 3.941 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3126, allocations: 0 / 1.178 GB, free: 3.941 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.3126, allocations: 0 / 1.178 GB, free: 3.941 MB / 0.92 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.0006064/0.3132, allocations: 371.3 kB / 1.178 GB, free: 3.527 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.3132, allocations: 12.03 kB / 1.178 GB, free: 3.516 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.3133, allocations: 4.938 kB / 1.178 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.3134, allocations: 168.3 kB / 1.178 GB, free: 3.309 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.3134, allocations: 4.312 kB / 1.178 GB, free: 3.305 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.3134, allocations: 12.34 kB / 1.178 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.3136, allocations: 62.22 kB / 1.178 GB, free: 3.227 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.3136, allocations: 4.188 kB / 1.178 GB, free: 3.223 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3137, allocations: 7.938 kB / 1.178 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3137, allocations: 0 / 1.178 GB, free: 3.215 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.3139, allocations: 43.95 kB / 1.178 GB, free: 3.172 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.3143, allocations: 268.9 kB / 1.179 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.3145, allocations: 62.42 kB / 1.179 GB, free: 2.789 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3146, allocations: 32.97 kB / 1.179 GB, free: 2.754 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.3146, allocations: 0 / 1.179 GB, free: 2.754 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000204/0.3149, allocations: 71.38 kB / 1.179 GB, free: 2.672 MB / 0.92 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.3149, allocations: 0 / 1.179 GB, free: 2.672 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0004343/0.3153, allocations: 129.5 kB / 1.179 GB, free: 2.539 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.3154, allocations: 51.41 kB / 1.179 GB, free: 2.477 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.794e-05/0.3155, allocations: 105.8 kB / 1.179 GB, free: 2.363 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.3155, allocations: 25.7 kB / 1.179 GB, free: 2.332 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.3155, allocations: 96.02 kB / 1.179 GB, free: 2.234 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.3156, allocations: 11.89 kB / 1.179 GB, free: 2.223 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.502e-05/0.3156, allocations: 25.8 kB / 1.179 GB, free: 2.191 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3158, allocations: 318.8 kB / 1.18 GB, free: 1.871 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.3159, allocations: 27.97 kB / 1.18 GB, free: 1.844 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.316, allocations: 51.41 kB / 1.18 GB, free: 1.781 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.3162, allocations: 87.27 kB / 1.18 GB, free: 1.684 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3163, allocations: 0 / 1.18 GB, free: 1.684 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002773/0.3165, allocations: 101.5 kB / 1.18 GB, free: 1.578 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.3166, allocations: 4 kB / 1.18 GB, free: 1.574 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3166, allocations: 8.031 kB / 1.18 GB, free: 1.566 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3166, allocations: 7.984 kB / 1.18 GB, free: 1.559 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3167, allocations: 8.5 kB / 1.18 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3167, allocations: 7.984 kB / 1.18 GB, free: 1.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.666e-05/0.3168, allocations: 8 kB / 1.18 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.3168, allocations: 7.938 kB / 1.18 GB, free: 1.527 MB / 0.92 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.801e-05/0.3169, allocations: 121.8 kB / 1.18 GB, free: 1.398 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.3169, allocations: 3.953 kB / 1.18 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002974/0.3172, allocations: 114 kB / 1.18 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3172, allocations: 0 / 1.18 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3173, allocations: 0 / 1.18 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3173, allocations: 0 / 1.18 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004905/0.3178, allocations: 358.4 kB / 1.18 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3178, allocations: 0 / 1.18 GB, free: 0.8711 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.44e-05/0.3178, allocations: 11.98 kB / 1.18 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3178, allocations: 4 kB / 1.18 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.3179, allocations: 0 / 1.18 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3179, allocations: 0 / 1.18 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3179, allocations: 160 / 1.18 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003068/0.3182, allocations: 191.5 kB / 1.181 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.3182, allocations: 89.05 kB / 1.181 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.3183, allocations: 4 kB / 1.181 GB, free: 0.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.3184, allocations: 7.984 kB / 1.181 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.94e-05/0.3184, allocations: 4 kB / 1.181 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.3184, allocations: 11.88 kB / 1.181 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.505e-05/0.3185, allocations: 87.45 kB / 1.181 GB, free: 444 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3185, allocations: 3.938 kB / 1.181 GB, free: 440 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002538/0.3188, allocations: 12 kB / 1.181 GB, free: 428 kB / 0.92 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.0001377/0.3189, allocations: 103.2 kB / 1.181 GB, free: 316 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002676/0.3192, allocations: 68.06 kB / 1.181 GB, free: 248 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3192, allocations: 0 / 1.181 GB, free: 248 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3193, allocations: 31.98 kB / 1.181 GB, free: 216 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.3196, allocations: 10.22 kB / 1.181 GB, free: 208 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/0.3199, allocations: 163.9 kB / 1.181 GB, free: 8 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.3203, allocations: 0.683 MB / 1.182 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.3203, allocations: 11.42 kB / 1.182 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.3203, allocations: 4 kB / 1.182 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of Templates: time 0.00255/0.3229, allocations: 0.8625 MB / 1.183 GB, free: 14.43 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.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: 10.20135876594577]