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.001237/0.001237, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 195.9 kB / 16.53 MB, free: 6.672 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.341/2.341, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.91 kB / 0.8127 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6875/0.6889, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001877/0.6908, allocations: 0.7473 MB / 0.9505 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009849/0.6918, allocations: 1.069 MB / 0.9515 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.567e-05/0.6919, allocations: 5.406 kB / 0.9515 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.246e-05/0.6919, allocations: 7.922 kB / 0.9515 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.488e-05/0.692, allocations: 13.3 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.6922, allocations: 52.3 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.024e-05/0.6923, allocations: 72.97 kB / 0.9517 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.6925, allocations: 16.73 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.535e-05/0.6925, allocations: 26.48 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.741e-05/0.6926, allocations: 40.86 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.6926, allocations: 5.562 kB / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.677e-05/0.6927, allocations: 20.83 kB / 0.9518 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.6927, allocations: 17.89 kB / 0.9518 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.6927, allocations: 31.62 kB / 0.9518 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.6929, allocations: 81.94 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.6929, allocations: 0 / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6929, allocations: 1.562 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.6929, allocations: 0 / 0.9519 GB, free: 7.449 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.0004409/0.6933, allocations: 376.1 kB / 0.9523 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.6934, allocations: 8.312 kB / 0.9523 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.25e-05/0.6934, allocations: 45.53 kB / 0.9523 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.6935, allocations: 7.562 kB / 0.9523 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.979e-05/0.6935, allocations: 171.5 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.6936, allocations: 2.688 kB / 0.9525 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.6936, allocations: 9.062 kB / 0.9525 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.6938, allocations: 73.59 kB / 0.9526 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.6938, allocations: 0 / 0.9526 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.6938, allocations: 4 kB / 0.9526 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.6938, allocations: 5.312 kB / 0.9526 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.694, allocations: 44.86 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005273/0.6945, allocations: 328.2 kB / 0.9529 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.6947, allocations: 53.06 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.031e-05/0.6948, allocations: 35.39 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.6948, allocations: 0 / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/0.695, allocations: 78.78 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.695, allocations: 4 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003789/0.6954, allocations: 132.8 kB / 0.9532 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.6954, allocations: 56.69 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.226e-05/0.6955, allocations: 117.4 kB / 0.9534 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.6955, allocations: 31.19 kB / 0.9534 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.578e-05/0.6955, allocations: 92.12 kB / 0.9535 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.6956, allocations: 14.94 kB / 0.9535 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.6956, allocations: 33.7 kB / 0.9535 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.601e-05/0.6957, allocations: 325.7 kB / 0.9539 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.6958, allocations: 24.2 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.6959, allocations: 77.77 kB / 0.954 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/0.6961, allocations: 115.5 kB / 0.9541 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.6961, allocations: 0 / 0.9541 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002735/0.6964, allocations: 129.7 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.6964, allocations: 6.406 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.6964, allocations: 1.312 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.6964, allocations: 3.375 kB / 0.9542 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.6966, allocations: 27.73 kB / 0.9542 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.6966, allocations: 1.938 kB / 0.9542 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.6967, allocations: 17.05 kB / 0.9542 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.6967, allocations: 5.25 kB / 0.9542 GB, free: 5.207 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 6.191e-05/0.6967, allocations: 126.7 kB / 0.9544 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.6968, allocations: 7.156 kB / 0.9544 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.6968, allocations: 13.55 kB / 0.9544 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6968, allocations: 5.094 kB / 0.9544 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.6968, allocations: 3.938 kB / 0.9544 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.6968, allocations: 1 kB / 0.9544 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.6972, allocations: 368.9 kB / 0.9547 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.6972, allocations: 0 / 0.9547 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.112e-05/0.6973, allocations: 10.25 kB / 0.9548 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.6973, allocations: 0 / 0.9548 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.6973, allocations: 5.125 kB / 0.9548 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.6973, allocations: 8.984 kB / 0.9548 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6973, allocations: 0 / 0.9548 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002409/0.6975, allocations: 205.2 kB / 0.955 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.092e-05/0.6976, allocations: 87.22 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.6976, allocations: 5.078 kB / 0.9551 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.013e-05/0.6977, allocations: 15.12 kB / 0.9551 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.6977, allocations: 6.984 kB / 0.9551 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.6977, allocations: 2.406 kB / 0.9551 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.313e-05/0.6978, allocations: 93.02 kB / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6978, allocations: 0 / 0.9552 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002468/0.698, allocations: 20.53 kB / 0.9552 GB, free: 4.297 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.0004358/0.6985, allocations: 0.7363 MB / 0.9559 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002567/0.6987, allocations: 81.53 kB / 0.956 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.6987, allocations: 3.938 kB / 0.956 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.6988, allocations: 40.92 kB / 0.956 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.6991, allocations: 14.75 kB / 0.956 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.7005, allocations: 1.515 MB / 0.9575 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.7006, allocations: 0.6893 MB / 0.9582 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.371e-05/0.7006, allocations: 8.594 kB / 0.9582 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.152e-05/0.7007, allocations: 22.98 kB / 0.9582 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.7007, allocations: 4 kB / 0.9582 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.7186, allocations: 2.07 MB / 0.9602 GB, free: 336 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/8.351, allocations: 9.312 kB / 0.9603 GB, free: 328 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