Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001786/0.001786, allocations: 114.6 kB / 17.08 MB, free: 5.961 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.002057/0.002057, allocations: 191.7 kB / 20.02 MB, free: 3.043 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.467/1.467, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.157/3.157, allocations: 489.3 MB / 0.7687 GB, free: 3.766 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002226/0.002226, allocations: 63.89 kB / 1.103 GB, free: 0.7773 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.051/1.053, allocations: 163.8 MB / 1.263 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002415/1.055, allocations: 0.7594 MB / 1.263 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001551/1.057, allocations: 1.07 MB / 1.264 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.734e-05/1.057, allocations: 8.062 kB / 1.264 GB, free: 6.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.537e-05/1.057, allocations: 5.562 kB / 1.264 GB, free: 6.727 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.299e-05/1.057, allocations: 9.438 kB / 1.264 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/1.057, allocations: 47.72 kB / 1.264 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001465/1.058, allocations: 81.36 kB / 1.265 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/1.058, allocations: 15.2 kB / 1.265 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.752e-05/1.058, allocations: 30.97 kB / 1.265 GB, free: 6.629 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.842e-05/1.058, allocations: 36.83 kB / 1.265 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/1.058, allocations: 5.531 kB / 1.265 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.152e-05/1.058, allocations: 20.39 kB / 1.265 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/1.058, allocations: 17.7 kB / 1.265 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.044e-05/1.058, allocations: 31.11 kB / 1.265 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001883/1.058, allocations: 81.36 kB / 1.265 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/1.058, allocations: 0.8438 kB / 1.265 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.015e-06/1.058, allocations: 0 / 1.265 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.269e-06/1.058, allocations: 4.656 kB / 1.265 GB, free: 6.543 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005244/1.059, allocations: 379.3 kB / 1.265 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/1.059, allocations: 9.562 kB / 1.265 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/1.059, allocations: 9.062 kB / 1.265 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/1.059, allocations: 173.4 kB / 1.265 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/1.059, allocations: 7.125 kB / 1.265 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/1.059, allocations: 4.312 kB / 1.265 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/1.059, allocations: 64.09 kB / 1.265 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/1.059, allocations: 8.5 kB / 1.265 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/1.059, allocations: 5.5 kB / 1.265 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/1.059, allocations: 0.75 kB / 1.265 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/1.06, allocations: 47.11 kB / 1.265 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006092/1.06, allocations: 323.5 kB / 1.266 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/1.06, allocations: 64.11 kB / 1.266 GB, free: 5.551 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/1.061, allocations: 28 kB / 1.266 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/1.061, allocations: 2.141 kB / 1.266 GB, free: 5.539 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/1.061, allocations: 73.73 kB / 1.266 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/1.061, allocations: 0 / 1.266 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004461/1.061, allocations: 140 kB / 1.266 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/1.061, allocations: 53.97 kB / 1.266 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.125e-05/1.061, allocations: 122.7 kB / 1.266 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/1.061, allocations: 31.16 kB / 1.266 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.924e-05/1.061, allocations: 92.55 kB / 1.266 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/1.061, allocations: 16.16 kB / 1.266 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.115e-05/1.062, allocations: 37.83 kB / 1.266 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.877e-05/1.062, allocations: 323.2 kB / 1.267 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/1.062, allocations: 27.39 kB / 1.267 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/1.062, allocations: 70.25 kB / 1.267 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/1.062, allocations: 118.4 kB / 1.267 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/1.062, allocations: 0.6562 kB / 1.267 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003247/1.062, allocations: 127.2 kB / 1.267 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/1.062, allocations: 9.906 kB / 1.267 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/1.062, allocations: 2.188 kB / 1.267 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/1.062, allocations: 3.078 kB / 1.267 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/1.063, allocations: 24.3 kB / 1.267 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/1.063, allocations: 11.03 kB / 1.267 GB, free: 4.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.296e-05/1.063, allocations: 12.17 kB / 1.267 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/1.063, allocations: 9.391 kB / 1.267 GB, free: 4.516 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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 7.654e-05/1.063, allocations: 121.2 kB / 1.267 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.627e-05/1.063, allocations: 11.48 kB / 1.267 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.766e-05/1.063, allocations: 11.11 kB / 1.267 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/1.063, allocations: 0.7812 kB / 1.267 GB, free: 4.371 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/1.063, allocations: 4.781 kB / 1.267 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/1.063, allocations: 0.6094 kB / 1.267 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/1.063, allocations: 380.5 kB / 1.268 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/1.063, allocations: 0 / 1.268 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.602e-05/1.063, allocations: 8.703 kB / 1.268 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/1.063, allocations: 1 kB / 1.268 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/1.063, allocations: 5.625 kB / 1.268 GB, free: 4.023 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.063, allocations: 7.938 kB / 1.268 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/1.063, allocations: 0.75 kB / 1.268 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/1.064, allocations: 195.6 kB / 1.268 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.454e-05/1.064, allocations: 84 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/1.064, allocations: 1.641 kB / 1.268 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.419e-05/1.064, allocations: 10.47 kB / 1.268 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/1.064, allocations: 8.406 kB / 1.268 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/1.064, allocations: 3.109 kB / 1.268 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.142e-05/1.064, allocations: 95.16 kB / 1.268 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.064, allocations: 0 / 1.268 GB, free: 3.68 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000259/1.064, allocations: 14.42 kB / 1.268 GB, free: 3.68 MB / 0.9981 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001826/1.064, allocations: 105.3 kB / 1.268 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003128/1.065, allocations: 87.86 kB / 1.268 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/1.065, allocations: 0 / 1.268 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000128/1.065, allocations: 31.16 kB / 1.268 GB, free: 3.559 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/1.065, allocations: 11.91 kB / 1.268 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003643/1.066, allocations: 193.5 kB / 1.268 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/1.066, allocations: 0.6947 MB / 1.269 GB, free: 2.676 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/1.066, allocations: 11.91 kB / 1.269 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of SimCode: time 9.52e-07/1.066, allocations: 0.8125 kB / 1.269 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of Templates: time 0.003449/1.069, allocations: 1.061 MB / 1.27 GB, free: 2.574 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y [Calling sys.exit(0), Time elapsed: 11.704444948816672]