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.0007335/0.0007335, allocations: 91.84 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.004845/0.004846, allocations: 173.9 kB / 16.27 MB, free: 6.676 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.436/2.436, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003345/0.0003345, allocations: 12 kB / 0.873 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7107/0.7111, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001086/0.7122, allocations: 485.4 kB / 1.024 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.7139, allocations: 1.062 MB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.384e-05/0.714, allocations: 7.938 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.714, allocations: 0 / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.536e-05/0.7141, allocations: 3.938 kB / 1.025 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.7144, allocations: 47.89 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.7146, allocations: 63.84 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.7147, allocations: 20.17 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.317e-05/0.7148, allocations: 35.78 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.331e-05/0.7149, allocations: 23.91 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.7149, allocations: 4 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.414e-05/0.715, allocations: 15.98 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.715, allocations: 15.92 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.157e-05/0.7151, allocations: 49.56 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001503/0.7153, allocations: 71.73 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.7153, allocations: 0 / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.231e-06/0.7153, allocations: 7.984 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.7153, allocations: 0 / 1.025 GB, free: 13.96 MB / 0.7794 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.0005859/0.7159, allocations: 365.6 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.7159, allocations: 12.03 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.083e-05/0.716, allocations: 34.73 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.497e-05/0.716, allocations: 12.83 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.7162, allocations: 176.2 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.7162, allocations: 16.31 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.7162, allocations: 4.375 kB / 1.026 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.7165, allocations: 77.91 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.7165, allocations: 0 / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.7165, allocations: 4 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.7165, allocations: 0 / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.7167, allocations: 55.95 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006862/0.7174, allocations: 344.5 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.7176, allocations: 54.56 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.7177, allocations: 36.95 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.7177, allocations: 4 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.718, allocations: 83.41 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.718, allocations: 0 / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004669/0.7185, allocations: 149.6 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.7185, allocations: 51.41 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.7186, allocations: 122.1 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.7187, allocations: 33.69 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.256e-05/0.7187, allocations: 92.14 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.7188, allocations: 11.81 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.7188, allocations: 21.7 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.7189, allocations: 318.8 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.7191, allocations: 39.91 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.7192, allocations: 82.03 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.7195, allocations: 117.9 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.7195, allocations: 0 / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003342/0.7198, allocations: 145.4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.7198, allocations: 7.938 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.7199, allocations: 4 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.7199, allocations: 4.219 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.72, allocations: 27.97 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.72, allocations: 4.312 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.867e-05/0.7201, allocations: 15.84 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.7202, allocations: 7.984 kB / 1.027 GB, free: 11.2 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.0001038/0.7203, allocations: 121.7 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.7203, allocations: 4 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.076e-05/0.7203, allocations: 12.38 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.7203, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.7203, allocations: 4 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.7203, allocations: 0 / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004972/0.7208, allocations: 394.3 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7209, allocations: 3.938 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.978e-05/0.7209, allocations: 15.98 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.7209, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.721, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.721, allocations: 3.938 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.721, allocations: 4 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00031/0.7213, allocations: 215.3 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.134e-05/0.7213, allocations: 81.11 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.7214, allocations: 3.984 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.7215, allocations: 19.92 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.7215, allocations: 4 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.7215, allocations: 7.984 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.784e-05/0.7216, allocations: 87.28 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7216, allocations: 0 / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002678/0.7219, allocations: 23.89 kB / 1.028 GB, free: 10.11 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.0006604/0.7225, allocations: 0.7516 MB / 1.029 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002981/0.7228, allocations: 91.83 kB / 1.029 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.7228, allocations: 0 / 1.029 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.723, allocations: 47.89 kB / 1.029 GB, free: 9.199 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.7233, allocations: 16.36 kB / 1.029 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.7251, allocations: 1.548 MB / 1.031 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.7254, allocations: 0.6965 MB / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.643e-05/0.7254, allocations: 4 kB / 1.031 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.749e-05/0.7255, allocations: 23.42 kB / 1.031 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of SimCode: time 8.51e-07/0.7255, allocations: 0 / 1.031 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01306/0.7385, allocations: 1.826 MB / 1.033 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.7388, allocations: 240.3 kB / 1.034 GB, free: 4.91 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/2.423, allocations: 3.938 kB / 1.034 GB, free: 4.906 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