Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001107/0.001107, allocations: 108 kB / 15.61 MB, free: 152 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.001102/0.001102, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.595/2.595, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 66.89 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3701, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002594/0.3727, allocations: 0.7624 MB / 1.064 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00178/0.3745, allocations: 1.07 MB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.493e-05/0.3746, allocations: 4 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.632e-05/0.3747, allocations: 3.938 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.799e-05/0.3748, allocations: 19.84 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.3753, allocations: 43.91 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.3754, allocations: 75.77 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.3756, allocations: 24.16 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001362/0.3757, allocations: 27.86 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.349e-05/0.3758, allocations: 35.89 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.12e-05/0.3758, allocations: 4 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.376, allocations: 23.92 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.981e-05/0.376, allocations: 12 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.912e-05/0.3761, allocations: 31.86 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.3763, allocations: 79.73 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.3763, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 6.653e-06/0.3763, allocations: 4 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.759e-06/0.3763, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 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.0007579/0.3771, allocations: 371.5 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/0.3772, allocations: 12.03 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.679e-05/0.3772, allocations: 38.69 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.3773, allocations: 20.77 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.3775, allocations: 180.2 kB / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.3776, allocations: 384 / 1.066 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.3776, allocations: 4.375 kB / 1.066 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3779, allocations: 73.97 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3779, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.378, allocations: 3.938 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.378, allocations: 4 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.3782, allocations: 47.95 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009639/0.3792, allocations: 308.8 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002166/0.3794, allocations: 58.58 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.3796, allocations: 36.95 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.3796, allocations: 0 / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003596/0.38, allocations: 79.31 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.354e-06/0.38, allocations: 0 / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005842/0.3806, allocations: 137.5 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/0.3807, allocations: 55.39 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.3809, allocations: 129.7 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.381, allocations: 25.7 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.381, allocations: 92.12 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.983e-05/0.3811, allocations: 15.75 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.648e-05/0.3812, allocations: 33.7 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000199/0.3814, allocations: 314.8 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.3815, allocations: 35.97 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.3817, allocations: 73.92 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.382, allocations: 113.8 kB / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.382, allocations: 0 / 1.068 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003589/0.3824, allocations: 129.4 kB / 1.068 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3824, allocations: 4 kB / 1.068 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3824, allocations: 4 kB / 1.068 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.3825, allocations: 3.984 kB / 1.068 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.3826, allocations: 23.92 kB / 1.068 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3826, allocations: 4.219 kB / 1.068 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.593e-05/0.3827, allocations: 8 kB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3828, allocations: 11.98 kB / 1.068 GB, free: 9.59 MB / 0.8262 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.0001072/0.3829, allocations: 117.8 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.3829, allocations: 7.906 kB / 1.068 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.3829, allocations: 8.375 kB / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3829, allocations: 0 / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.383, allocations: 0 / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.383, allocations: 0 / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005603/0.3835, allocations: 386.2 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3835, allocations: 0 / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.398e-05/0.3836, allocations: 15.98 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3836, allocations: 0 / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.829e-06/0.3836, allocations: 3.984 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3836, allocations: 3.938 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3836, allocations: 7.938 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002895/0.3839, allocations: 203.9 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.384, allocations: 81.02 kB / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.384, allocations: 0 / 1.069 GB, free: 8.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.424e-05/0.3841, allocations: 11.92 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.3842, allocations: 8 kB / 1.069 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.3842, allocations: 3.984 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.315e-05/0.3842, allocations: 95.28 kB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.874e-06/0.3842, allocations: 3.938 kB / 1.069 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000263/0.3845, allocations: 23.92 kB / 1.069 GB, free: 8.527 MB / 0.8262 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.0007638/0.3853, allocations: 0.7441 MB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.3856, allocations: 79.88 kB / 1.07 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.3856, allocations: 4 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.3858, allocations: 31.92 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.3861, allocations: 17.61 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3882, allocations: 1.516 MB / 1.071 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.3885, allocations: 0.6885 MB / 1.072 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.442e-05/0.3886, allocations: 7.984 kB / 1.072 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.3886, allocations: 23.38 kB / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of SimCode: time 1.202e-06/0.3886, allocations: 0 / 1.072 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.407, allocations: 2.076 MB / 1.074 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.227/7.634, allocations: 9.609 kB / 1.074 GB, free: 3.332 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv --start-time -2 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable samTri.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.csv failed! " Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:time,triggeredSampler1.u,triggeredSampler.y,triggeredSampler1.y,ramp.duration,ramp.height