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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, 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.001071/0.001071, allocations: 192.4 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.251/1.251, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.369/2.369, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6566/0.658, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002442/0.6605, allocations: 0.8228 MB / 1.018 GB, free: 1.973 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.662, allocations: 1.077 MB / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.586e-05/0.6621, allocations: 0 / 1.019 GB, free: 0.8789 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.089e-05/0.6621, allocations: 7.938 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.53e-05/0.6623, allocations: 7.922 kB / 1.019 GB, free: 0.8633 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000333/0.6626, allocations: 39.91 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.6627, allocations: 67.78 kB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.6628, allocations: 24.14 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.382e-05/0.6629, allocations: 31.92 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.008e-05/0.663, allocations: 27.84 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.849e-05/0.663, allocations: 4 kB / 1.019 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.542e-05/0.6631, allocations: 15.98 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.6632, allocations: 15.97 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.327e-05/0.6632, allocations: 27.81 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.6634, allocations: 71.8 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.6634, allocations: 7.938 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6634, allocations: 0 / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.6634, allocations: 0 / 1.019 GB, free: 0.5312 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.0005688/0.664, allocations: 385.4 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.664, allocations: 12.03 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.401e-05/0.6641, allocations: 34.73 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.6641, allocations: 8.844 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.6643, allocations: 172.3 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.6643, allocations: 384 / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.6643, allocations: 4.375 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001961/0.6645, allocations: 73.91 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.6645, allocations: 8 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.6646, allocations: 7.938 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.6646, allocations: 4 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.6647, allocations: 43.95 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00062/0.6654, allocations: 324.6 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.6655, allocations: 54.55 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.432e-05/0.6657, allocations: 32.95 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.6657, allocations: 3.984 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.6659, allocations: 79.38 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.6659, allocations: 0 / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004103/0.6663, allocations: 133.6 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.6664, allocations: 51.41 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.6665, allocations: 117.8 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.6665, allocations: 29.7 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.6666, allocations: 96.03 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.6666, allocations: 23.8 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/0.6667, allocations: 25.7 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.6668, allocations: 322.8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.6669, allocations: 31.92 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.667, allocations: 74.42 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.6673, allocations: 113.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.6673, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002926/0.6676, allocations: 125.4 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.6676, allocations: 7.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.6676, allocations: 12.2 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.6677, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.6678, allocations: 23.92 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.6678, allocations: 4 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.276e-05/0.6679, allocations: 11.92 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.6679, allocations: 8 kB / 1.021 GB, free: 13.85 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 9.066e-05/0.668, allocations: 123.9 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.668, allocations: 7.906 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.6681, allocations: 12.38 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.6681, allocations: 0 / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.6681, allocations: 0 / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.6681, allocations: 7.984 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004312/0.6685, allocations: 362.5 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6685, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.528e-05/0.6686, allocations: 15.92 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.6686, allocations: 4 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.6686, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.6686, allocations: 3.938 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6686, allocations: 3.938 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.6689, allocations: 199.8 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.2e-05/0.669, allocations: 81.02 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.669, allocations: 8 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.6691, allocations: 11.92 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.6691, allocations: 11.98 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.6691, allocations: 4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.373e-05/0.6692, allocations: 99.36 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6692, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002457/0.6695, allocations: 16 kB / 1.022 GB, free: 12.79 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.0005627/0.67, allocations: 0.7553 MB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002518/0.6703, allocations: 75.88 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6703, allocations: 448 / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.6704, allocations: 39.92 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.6707, allocations: 16.75 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.6723, allocations: 1.523 MB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.6725, allocations: 0.6848 MB / 1.025 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.584e-05/0.6726, allocations: 7.984 kB / 1.025 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.6726, allocations: 23.44 kB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.6726, allocations: 0 / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01088/0.6835, allocations: 1.882 MB / 1.027 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/0.6837, allocations: 249.2 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.543/2.226, allocations: 2.25 kB / 1.027 GB, free: 7.539 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > 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/jenkins1/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,ramp.y,samTri.period,samTri.shift,samTri.y,samTri1.period,samTri1.shift,samTri1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.trigger,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start