Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 89.97 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01039/0.01039, allocations: 173 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.519/2.519, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004103, allocations: 12.28 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7825/0.7829, allocations: 142.4 MB / 0.9551 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0009186/0.7839, allocations: 483.8 kB / 0.9555 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001409/0.7853, allocations: 1.058 MB / 0.9566 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.742e-05/0.7854, allocations: 4 kB / 0.9566 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.18e-05/0.7855, allocations: 3.938 kB / 0.9566 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.441e-05/0.7856, allocations: 13.31 kB / 0.9566 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.7859, allocations: 40.95 kB / 0.9566 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.786, allocations: 68.05 kB / 0.9567 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.7861, allocations: 19.14 kB / 0.9567 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.557e-05/0.7862, allocations: 22.08 kB / 0.9567 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.799e-05/0.7863, allocations: 33.08 kB / 0.9568 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.7863, allocations: 7.5 kB / 0.9568 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.7864, allocations: 20.61 kB / 0.9568 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.7864, allocations: 10.09 kB / 0.9568 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.875e-05/0.7865, allocations: 49.16 kB / 0.9568 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.7866, allocations: 73.86 kB / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.7866, allocations: 0 / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7866, allocations: 0 / 0.9569 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.487e-06/0.7866, allocations: 0 / 0.9569 GB, free: 6.387 MB / 0.7169 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.0005155/0.7872, allocations: 375.7 kB / 0.9573 GB, free: 6 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.7872, allocations: 8.438 kB / 0.9573 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.577e-05/0.7873, allocations: 9.531 kB / 0.9573 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.401e-05/0.7874, allocations: 175.6 kB / 0.9575 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.7874, allocations: 2.719 kB / 0.9575 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.7874, allocations: 4.062 kB / 0.9575 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.7876, allocations: 74.55 kB / 0.9575 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.7877, allocations: 7.938 kB / 0.9575 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.7877, allocations: 8.953 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.7877, allocations: 0.9375 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.7879, allocations: 49.94 kB / 0.9576 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.7885, allocations: 340.2 kB / 0.9579 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.7887, allocations: 65.64 kB / 0.958 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.7888, allocations: 30.91 kB / 0.958 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.7888, allocations: 1.469 kB / 0.958 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.789, allocations: 87 kB / 0.9581 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.645e-06/0.789, allocations: 0 / 0.9581 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004289/0.7895, allocations: 151.7 kB / 0.9582 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.7895, allocations: 56.91 kB / 0.9583 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.7896, allocations: 128.3 kB / 0.9584 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.7896, allocations: 26.89 kB / 0.9584 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.7897, allocations: 87.64 kB / 0.9585 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.7897, allocations: 18.14 kB / 0.9585 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.7897, allocations: 18.31 kB / 0.9586 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.286e-05/0.7898, allocations: 323.7 kB / 0.9589 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.7899, allocations: 33.23 kB / 0.9589 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.79, allocations: 75.64 kB / 0.959 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.7903, allocations: 125.6 kB / 0.9591 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.7903, allocations: 0 / 0.9591 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000307/0.7906, allocations: 146.9 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.7906, allocations: 5.5 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.7906, allocations: 2.75 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.7906, allocations: 1.375 kB / 0.9592 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.7908, allocations: 23.05 kB / 0.9593 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.7908, allocations: 6.75 kB / 0.9593 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.7909, allocations: 20.23 kB / 0.9593 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.7909, allocations: 4.125 kB / 0.9593 GB, free: 4.191 MB / 0.7169 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.912e-05/0.791, allocations: 128.6 kB / 0.9594 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.793e-05/0.791, allocations: 6.656 kB / 0.9594 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.688e-05/0.7911, allocations: 9.75 kB / 0.9594 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.7911, allocations: 5.359 kB / 0.9594 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.7911, allocations: 0 / 0.9594 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.7911, allocations: 1.375 kB / 0.9594 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.7915, allocations: 381.8 kB / 0.9598 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.7915, allocations: 9.25 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.7916, allocations: 10.86 kB / 0.9598 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7916, allocations: 5.375 kB / 0.9598 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.7916, allocations: 0 / 0.9598 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.7916, allocations: 5.312 kB / 0.9598 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.7916, allocations: 3.938 kB / 0.9598 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002603/0.7919, allocations: 206.5 kB / 0.96 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.287e-05/0.7919, allocations: 83.77 kB / 0.9601 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.7919, allocations: 5.359 kB / 0.9601 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.792, allocations: 13.44 kB / 0.9601 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.7921, allocations: 6.734 kB / 0.9601 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.7921, allocations: 1.375 kB / 0.9601 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.226e-05/0.7921, allocations: 93.52 kB / 0.9602 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.112e-06/0.7921, allocations: 0 / 0.9602 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002686/0.7924, allocations: 26.34 kB / 0.9603 GB, free: 3.289 MB / 0.7169 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.0001468/0.7925, allocations: 101.6 kB / 0.9604 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002979/0.7929, allocations: 93.7 kB / 0.9604 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.7929, allocations: 0 / 0.9604 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.793, allocations: 42.22 kB / 0.9605 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.7933, allocations: 9.812 kB / 0.9605 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/0.7936, allocations: 187.1 kB / 0.9607 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.7938, allocations: 0.6891 MB / 0.9613 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.809e-05/0.7938, allocations: 11.91 kB / 0.9614 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.929e-05/0.7938, allocations: 11.88 kB / 0.9614 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.7938, allocations: 0 / 0.9614 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of Templates: time 0.003525/0.7974, allocations: 0.8739 MB / 0.9622 GB, free: 1.84 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start