Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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 10.1.1-maint.10.0.x/package.mo", uses=false) 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.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001854/0.001854, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002315/0.002316, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.627/1.627, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.902/2.902, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002616/0.002617, allocations: 59.91 kB / 0.8686 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8964/0.8991, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002516/0.9017, allocations: 0.8127 MB / 1.017 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.9035, allocations: 1.07 MB / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.655e-05/0.9035, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.65e-05/0.9036, allocations: 0 / 1.019 GB, free: 0.8828 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.648e-05/0.9037, allocations: 15.86 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002957/0.904, allocations: 39.97 kB / 1.019 GB, free: 0.8281 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.9041, allocations: 79.66 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.9042, allocations: 24.14 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.801e-05/0.9043, allocations: 23.92 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.138e-05/0.9044, allocations: 31.84 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.9044, allocations: 4 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.435e-05/0.9045, allocations: 15.98 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.657e-05/0.9046, allocations: 15.97 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.13e-05/0.9046, allocations: 31.8 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.9048, allocations: 67.81 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.9048, allocations: 4 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.62e-07/0.9048, allocations: 4 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.9048, allocations: 0 / 1.019 GB, free: 0.5273 MB / 0.7637 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.000745/0.9056, allocations: 381.1 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.9056, allocations: 12.03 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.432e-05/0.9057, allocations: 4.922 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002018/0.9059, allocations: 176.2 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.9059, allocations: 8.375 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.9059, allocations: 8.375 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.9062, allocations: 70.22 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.9062, allocations: 3.938 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.9062, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.9062, allocations: 0 / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.9064, allocations: 47.89 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.9072, allocations: 324.6 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.9074, allocations: 54.55 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.9076, allocations: 32.98 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.9076, allocations: 7.984 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.9079, allocations: 83.36 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.9079, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004517/0.9084, allocations: 121.5 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/0.9084, allocations: 59.39 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.9086, allocations: 125.8 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.9086, allocations: 29.7 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.82e-05/0.9087, allocations: 92.03 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.164e-05/0.9087, allocations: 19.8 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.789e-05/0.9088, allocations: 29.7 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.9089, allocations: 322.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.9091, allocations: 31.97 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.9092, allocations: 77.92 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.9095, allocations: 105.9 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.9095, allocations: 3.938 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003242/0.9098, allocations: 133.6 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.9098, allocations: 8 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.9099, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.9099, allocations: 7.984 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.91, allocations: 15.98 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.91, allocations: 7.938 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.629e-05/0.9101, allocations: 7.938 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.9102, allocations: 7.984 kB / 1.021 GB, free: 13.89 MB / 0.7794 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 0.0001173/0.9103, allocations: 125.8 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.9103, allocations: 7.906 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.604e-05/0.9103, allocations: 8.375 kB / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.9103, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.9104, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.9104, allocations: 0 / 1.021 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005464/0.9109, allocations: 382.4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.9109, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.527e-05/0.911, allocations: 7.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.911, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.911, allocations: 4 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.911, allocations: 3.938 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.911, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.9114, allocations: 203.3 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.845e-05/0.9115, allocations: 85.02 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.9115, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/0.9116, allocations: 11.92 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.9117, allocations: 11.98 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-06/0.9117, allocations: 0 / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.195e-05/0.9118, allocations: 91.88 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9118, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000267/0.912, allocations: 27.98 kB / 1.022 GB, free: 12.83 MB / 0.7794 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.0002045/0.9122, allocations: 104.1 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003086/0.9126, allocations: 79.88 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.9126, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.9127, allocations: 31.92 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.913, allocations: 24.3 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.9135, allocations: 171.9 kB / 1.022 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000414/0.9139, allocations: 0.6926 MB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.121e-05/0.914, allocations: 8 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.914, allocations: 11.44 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of SimCode: time 6.91e-07/0.914, allocations: 0 / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of Templates: time 0.004288/0.9183, allocations: 0.8743 MB / 1.024 GB, free: 10.82 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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