Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_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_9_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.001414/0.001419, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001534/0.001534, allocations: 193.2 kB / 16.26 MB, free: 6.621 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.441 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.359/2.359, allocations: 390.3 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 59.91 kB / 0.8122 GB, free: 14.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5169/0.5184, allocations: 140.4 MB / 0.9493 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001739/0.5202, allocations: 0.8067 MB / 0.9501 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009118/0.5211, allocations: 1.066 MB / 0.9511 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.573e-05/0.5211, allocations: 9.188 kB / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.891e-05/0.5212, allocations: 0 / 0.9511 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.723e-05/0.5212, allocations: 9.328 kB / 0.9511 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.5215, allocations: 41.53 kB / 0.9512 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.538e-05/0.5216, allocations: 76.64 kB / 0.9512 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.275e-05/0.5216, allocations: 12.44 kB / 0.9512 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.675e-05/0.5217, allocations: 30.86 kB / 0.9513 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.722e-05/0.5218, allocations: 37.45 kB / 0.9513 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.424e-05/0.5218, allocations: 9.5 kB / 0.9513 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.427e-05/0.5218, allocations: 20.36 kB / 0.9513 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.5219, allocations: 18.67 kB / 0.9514 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.5219, allocations: 28.11 kB / 0.9514 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.522, allocations: 76.25 kB / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.522, allocations: 1.375 kB / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.522, allocations: 0 / 0.9515 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.522, allocations: 0 / 0.9515 GB, free: 7.379 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.0004041/0.5224, allocations: 375.6 kB / 0.9518 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.054e-05/0.5225, allocations: 13.62 kB / 0.9518 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.384e-05/0.5225, allocations: 36.12 kB / 0.9519 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.5225, allocations: 12.91 kB / 0.9519 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.254e-05/0.5226, allocations: 179.9 kB / 0.952 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.5226, allocations: 6.891 kB / 0.952 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.5226, allocations: 8.844 kB / 0.9521 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00016/0.5228, allocations: 64.95 kB / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.5228, allocations: 0 / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.5228, allocations: 1.125 kB / 0.9521 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.5228, allocations: 5.344 kB / 0.9521 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.523, allocations: 43.17 kB / 0.9522 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004925/0.5235, allocations: 338.4 kB / 0.9525 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.5236, allocations: 55.36 kB / 0.9525 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.298e-05/0.5237, allocations: 35.56 kB / 0.9526 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.975e-05/0.5237, allocations: 0 / 0.9526 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.5239, allocations: 79.72 kB / 0.9527 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.5239, allocations: 3.984 kB / 0.9527 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003491/0.5243, allocations: 135.6 kB / 0.9528 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.5243, allocations: 53.88 kB / 0.9528 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.139e-05/0.5244, allocations: 119.6 kB / 0.953 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.5244, allocations: 27.14 kB / 0.953 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.834e-05/0.5244, allocations: 90.98 kB / 0.9531 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.5244, allocations: 18.89 kB / 0.9531 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.5245, allocations: 31.31 kB / 0.9531 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.431e-05/0.5245, allocations: 327.9 kB / 0.9534 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.677e-05/0.5246, allocations: 27.75 kB / 0.9535 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.5247, allocations: 70.95 kB / 0.9535 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.5249, allocations: 110.6 kB / 0.9536 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5249, allocations: 1.25 kB / 0.9536 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002573/0.5252, allocations: 128.7 kB / 0.9537 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.5252, allocations: 6.125 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.5252, allocations: 1.375 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.5252, allocations: 2.875 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.5254, allocations: 20.98 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.5254, allocations: 2.25 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.688e-05/0.5255, allocations: 18.05 kB / 0.9538 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.5255, allocations: 12.03 kB / 0.9538 GB, free: 5.129 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 5.875e-05/0.5255, allocations: 125.7 kB / 0.9539 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.5256, allocations: 14.52 kB / 0.9539 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.5256, allocations: 9.781 kB / 0.954 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5256, allocations: 1.469 kB / 0.954 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.5256, allocations: 4 kB / 0.954 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5256, allocations: 0 / 0.954 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003409/0.526, allocations: 372.9 kB / 0.9543 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.526, allocations: 1.031 kB / 0.9543 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-05/0.526, allocations: 9.359 kB / 0.9543 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.526, allocations: 0 / 0.9543 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.526, allocations: 5.344 kB / 0.9543 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.526, allocations: 3.938 kB / 0.9543 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.5261, allocations: 1.312 kB / 0.9543 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.5263, allocations: 196.9 kB / 0.9545 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.792e-05/0.5263, allocations: 86.38 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.5263, allocations: 5.469 kB / 0.9546 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.889e-05/0.5264, allocations: 12.12 kB / 0.9546 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.5264, allocations: 10.86 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.5265, allocations: 1.469 kB / 0.9546 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.876e-05/0.5265, allocations: 92.86 kB / 0.9547 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5265, allocations: 0 / 0.9547 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002363/0.5267, allocations: 16.94 kB / 0.9547 GB, free: 4.234 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.0003915/0.5271, allocations: 0.7482 MB / 0.9555 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002433/0.5274, allocations: 81 kB / 0.9555 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.5274, allocations: 1.156 kB / 0.9555 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.5275, allocations: 32.84 kB / 0.9556 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.5278, allocations: 17.41 kB / 0.9556 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.529, allocations: 1.527 MB / 0.9571 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.088e-05/0.5291, allocations: 0.6904 MB / 0.9578 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.279e-05/0.5291, allocations: 8.312 kB / 0.9578 GB, free: 1.309 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.035e-05/0.5292, allocations: 22.95 kB / 0.9578 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.5292, allocations: 5.219 kB / 0.9578 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5803/1.109, allocations: 1.949 MB / 0.9597 GB, free: 396 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/1.11, allocations: 241.6 kB / 0.9599 GB, free: 136 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/2.867, allocations: 1.406 kB / 0.9599 GB, free: 136 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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