Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",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.001145/0.001145, 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.001228/0.001228, allocations: 196.9 kB / 16.14 MB, free: 6.719 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.4/1.4, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.44/2.44, allocations: 390.2 MB / 0.6643 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8045/0.806, allocations: 140.4 MB / 0.9491 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002162/0.8082, allocations: 0.8076 MB / 0.9499 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.8096, allocations: 1.071 MB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.575e-05/0.8096, allocations: 5.375 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.845e-05/0.8097, allocations: 0 / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.594e-05/0.8098, allocations: 9.172 kB / 0.9509 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.8101, allocations: 48.11 kB / 0.951 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.632e-05/0.8102, allocations: 68.97 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.8103, allocations: 15.42 kB / 0.951 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.8104, allocations: 34.55 kB / 0.9511 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.403e-05/0.8104, allocations: 29.23 kB / 0.9511 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.8105, allocations: 4.344 kB / 0.9511 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.717e-05/0.8105, allocations: 17.59 kB / 0.9511 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.8106, allocations: 10.77 kB / 0.9511 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.24e-05/0.8106, allocations: 30.88 kB / 0.9512 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.8107, allocations: 72.94 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.8107, allocations: 9.219 kB / 0.9512 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8108, allocations: 0 / 0.9512 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.8108, allocations: 0 / 0.9512 GB, free: 7.453 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.0005063/0.8113, allocations: 375.8 kB / 0.9516 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.8113, allocations: 9.906 kB / 0.9516 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.176e-05/0.8114, allocations: 32.19 kB / 0.9516 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.8114, allocations: 15.88 kB / 0.9517 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.927e-05/0.8115, allocations: 180 kB / 0.9518 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.8115, allocations: 7.281 kB / 0.9518 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.8115, allocations: 4.719 kB / 0.9518 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.8117, allocations: 72.97 kB / 0.9519 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.8117, allocations: 0 / 0.9519 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.8118, allocations: 5.359 kB / 0.9519 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.8118, allocations: 1.031 kB / 0.9519 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.8119, allocations: 44.64 kB / 0.952 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.8125, allocations: 324.1 kB / 0.9523 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.8127, allocations: 56.83 kB / 0.9523 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.249e-05/0.8128, allocations: 26.06 kB / 0.9524 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.8128, allocations: 9.172 kB / 0.9524 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.813, allocations: 74.36 kB / 0.9524 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.813, allocations: 0.875 kB / 0.9524 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003903/0.8134, allocations: 132.4 kB / 0.9526 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.8135, allocations: 57.09 kB / 0.9526 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.498e-05/0.8135, allocations: 120.1 kB / 0.9527 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.8136, allocations: 30.95 kB / 0.9528 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.8136, allocations: 90.86 kB / 0.9528 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.8136, allocations: 22.2 kB / 0.9529 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.8137, allocations: 31.17 kB / 0.9529 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.811e-05/0.8138, allocations: 316.8 kB / 0.9532 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.8139, allocations: 36.53 kB / 0.9532 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.814, allocations: 77.23 kB / 0.9533 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.8142, allocations: 108.5 kB / 0.9534 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8142, allocations: 0 / 0.9534 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002835/0.8145, allocations: 130.1 kB / 0.9535 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.8145, allocations: 7.312 kB / 0.9535 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.8146, allocations: 2.344 kB / 0.9535 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.8146, allocations: 1.594 kB / 0.9535 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.8147, allocations: 23.84 kB / 0.9536 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.8147, allocations: 2.406 kB / 0.9536 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.403e-05/0.8148, allocations: 14.31 kB / 0.9536 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.8148, allocations: 4.219 kB / 0.9536 GB, free: 5.223 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 7.031e-05/0.8149, allocations: 131.2 kB / 0.9537 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.286e-05/0.8149, allocations: 6.781 kB / 0.9537 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.815, allocations: 10.03 kB / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.815, allocations: 1.312 kB / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.815, allocations: 0 / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.815, allocations: 0 / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003783/0.8154, allocations: 381.9 kB / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.8154, allocations: 0 / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.282e-05/0.8154, allocations: 13.64 kB / 0.9541 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.8154, allocations: 0 / 0.9541 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.8155, allocations: 1.438 kB / 0.9541 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.8155, allocations: 3.938 kB / 0.9541 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8155, allocations: 1.25 kB / 0.9541 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/0.8157, allocations: 212.9 kB / 0.9543 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.98e-05/0.8157, allocations: 82.36 kB / 0.9544 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.8158, allocations: 1.25 kB / 0.9544 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-05/0.8159, allocations: 11.7 kB / 0.9544 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.8159, allocations: 7.375 kB / 0.9544 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.8159, allocations: 1.188 kB / 0.9544 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.2e-05/0.8159, allocations: 93.27 kB / 0.9545 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.82e-07/0.816, allocations: 4 kB / 0.9545 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002665/0.8162, allocations: 17.16 kB / 0.9545 GB, free: 4.316 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.0004487/0.8167, allocations: 0.7413 MB / 0.9552 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002566/0.8169, allocations: 81.02 kB / 0.9553 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.817, allocations: 0 / 0.9553 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.8171, allocations: 44.58 kB / 0.9554 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.8173, allocations: 10.91 kB / 0.9554 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.8188, allocations: 1.528 MB / 0.9569 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000142/0.8189, allocations: 0.6932 MB / 0.9575 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.659e-05/0.819, allocations: 9.438 kB / 0.9576 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.819, allocations: 23.17 kB / 0.9576 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.819, allocations: 0 / 0.9576 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/0.8311, allocations: 1.891 MB / 0.9594 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/0.8313, allocations: 243 kB / 0.9597 GB, free: 244 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/2.553, allocations: 0 / 0.9597 GB, free: 244 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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