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: "" <> 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.001212/0.001212, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001302/0.001302, allocations: 190.5 kB / 16.25 MB, free: 6.598 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.252/1.252, allocations: 222.9 MB / 239.9 MB, free: 4.504 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.329/2.329, allocations: 437 MB / 0.7101 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 0.8689 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6071/0.6085, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002076/0.6106, allocations: 0.8207 MB / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.6118, allocations: 1.066 MB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.886e-05/0.6119, allocations: 0 / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.595e-05/0.612, allocations: 7.922 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.7e-05/0.612, allocations: 3.938 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.6123, allocations: 43.91 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.307e-05/0.6124, allocations: 79.83 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.6126, allocations: 20.16 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.172e-05/0.6126, allocations: 27.86 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.383e-05/0.6127, allocations: 35.84 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.6127, allocations: 4 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.436e-05/0.6128, allocations: 27.91 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.24e-05/0.6128, allocations: 15.92 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.981e-05/0.6129, allocations: 31.86 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.613, allocations: 75.75 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.613, allocations: 8 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.272e-06/0.613, allocations: 0 / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.613, allocations: 0 / 1.019 GB, free: 436 kB / 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.0005569/0.6136, allocations: 375.2 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.6137, allocations: 16.02 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.672e-05/0.6137, allocations: 34.75 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.6138, allocations: 4.938 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.6139, allocations: 172.2 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.614, allocations: 12.31 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.614, allocations: 384 / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.6142, allocations: 77.91 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.6142, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.6142, allocations: 7.984 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6142, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.6144, allocations: 43.95 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006711/0.6151, allocations: 332.5 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.6153, allocations: 58.55 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.171e-05/0.6154, allocations: 24.97 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.6154, allocations: 4 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.6156, allocations: 75.38 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.707e-06/0.6157, allocations: 96 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004005/0.6161, allocations: 137.7 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.6161, allocations: 51.41 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.833e-05/0.6162, allocations: 133.8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.6162, allocations: 25.7 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.6163, allocations: 96.03 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.6163, allocations: 15.81 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.6164, allocations: 29.7 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.6165, allocations: 318.8 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.6166, allocations: 31.97 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.6168, allocations: 81.86 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.617, allocations: 105.9 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.617, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003017/0.6173, allocations: 133.6 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.6173, allocations: 7.938 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.6174, allocations: 4 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.6174, allocations: 3.938 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.6175, allocations: 23.98 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.6175, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.719e-05/0.6176, allocations: 19.83 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.6176, allocations: 4 kB / 1.022 GB, free: 13.74 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.562e-05/0.6177, allocations: 129.9 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.6178, allocations: 7.906 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.6178, allocations: 8.359 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.6178, allocations: 0 / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.6178, allocations: 4 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.6178, allocations: 0 / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004454/0.6183, allocations: 378.4 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.6183, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.478e-05/0.6183, allocations: 8 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.6183, allocations: 0 / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.6184, allocations: 3.984 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.6184, allocations: 3.938 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.6184, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.6187, allocations: 199.4 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.6187, allocations: 81.02 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.6187, allocations: 3.984 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.876e-05/0.6188, allocations: 7.938 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.6189, allocations: 11.98 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.6189, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.153e-05/0.6189, allocations: 95.2 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6189, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002614/0.6192, allocations: 24 kB / 1.022 GB, free: 12.69 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.0006092/0.6198, allocations: 0.7436 MB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002769/0.6201, allocations: 87.81 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6201, allocations: 0 / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.6202, allocations: 35.91 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.6205, allocations: 17.91 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.622, allocations: 1.523 MB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.6223, allocations: 0.6924 MB / 1.025 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.598e-05/0.6223, allocations: 8 kB / 1.025 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.732e-05/0.6224, allocations: 23.42 kB / 1.025 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6224, allocations: 0 / 1.025 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2095/0.8318, allocations: 1.955 MB / 1.027 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002149/0.8321, allocations: 242.2 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.64, allocations: 0 / 1.028 GB, free: 7.395 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