Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_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_latest_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.008226/0.008226, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002051/0.002051, allocations: 202.2 kB / 16.68 MB, free: 5.965 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.926/2.926, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 63.91 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2989, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001867/0.3008, allocations: 0.7516 MB / 1.242 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001364/0.3021, allocations: 1.065 MB / 1.243 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.243e-05/0.3022, allocations: 0 / 1.243 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.249e-05/0.3022, allocations: 7.922 kB / 1.243 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.996e-05/0.3023, allocations: 15.86 kB / 1.243 GB, free: 8.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.3026, allocations: 47.84 kB / 1.243 GB, free: 8.309 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.3027, allocations: 71.81 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.3028, allocations: 24.17 kB / 1.243 GB, free: 8.211 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.262e-05/0.3029, allocations: 31.86 kB / 1.243 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.58e-05/0.303, allocations: 31.89 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.303, allocations: 8 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.344e-05/0.3031, allocations: 23.92 kB / 1.243 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.3031, allocations: 15.92 kB / 1.244 GB, free: 8.102 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.545e-05/0.3032, allocations: 31.86 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.3033, allocations: 75.62 kB / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3034, allocations: 0 / 1.244 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3034, allocations: 4 kB / 1.244 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.3034, allocations: 0 / 1.244 GB, free: 7.992 MB / 0.9981 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.0005535/0.3039, allocations: 391.1 kB / 1.244 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.304, allocations: 8.031 kB / 1.244 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.304, allocations: 34.75 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.3041, allocations: 12.88 kB / 1.244 GB, free: 7.5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.3042, allocations: 188.2 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.3042, allocations: 384 / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.3043, allocations: 4.375 kB / 1.244 GB, free: 7.273 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.3045, allocations: 69.98 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3045, allocations: 0 / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.3045, allocations: 4 kB / 1.244 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3045, allocations: 4 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.3047, allocations: 47.89 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006545/0.3054, allocations: 316.8 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.3056, allocations: 54.55 kB / 1.245 GB, free: 6.723 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.3057, allocations: 28.97 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.3057, allocations: 96 / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.306, allocations: 87.27 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.306, allocations: 0 / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004355/0.3064, allocations: 125.6 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.3065, allocations: 55.41 kB / 1.245 GB, free: 6.398 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3066, allocations: 126.1 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.3066, allocations: 29.7 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.701e-05/0.3067, allocations: 92.08 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.3067, allocations: 19.89 kB / 1.245 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.065e-05/0.3068, allocations: 25.66 kB / 1.245 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3069, allocations: 326.8 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.3071, allocations: 35.91 kB / 1.246 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.3072, allocations: 78.03 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3075, allocations: 105.9 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3075, allocations: 4 kB / 1.246 GB, free: 5.496 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003299/0.3079, allocations: 129.4 kB / 1.246 GB, free: 5.363 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3079, allocations: 8.219 kB / 1.246 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.3079, allocations: 7.938 kB / 1.246 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3079, allocations: 4 kB / 1.246 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.3081, allocations: 19.98 kB / 1.246 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3081, allocations: 4 kB / 1.246 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.629e-05/0.3082, allocations: 15.88 kB / 1.246 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.3082, allocations: 4 kB / 1.246 GB, free: 5.301 MB / 0.9981 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.000101/0.3083, allocations: 127 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.3083, allocations: 11.94 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.3083, allocations: 12.38 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3084, allocations: 0 / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3084, allocations: 0 / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3084, allocations: 0 / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005109/0.3089, allocations: 374.4 kB / 1.246 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3089, allocations: 0 / 1.246 GB, free: 4.719 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.655e-05/0.309, allocations: 7.984 kB / 1.246 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.309, allocations: 4 kB / 1.246 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.309, allocations: 8 kB / 1.246 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.309, allocations: 3.938 kB / 1.247 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.309, allocations: 0 / 1.247 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.3093, allocations: 199.4 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.363e-05/0.3094, allocations: 85.06 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.3094, allocations: 4 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-05/0.3095, allocations: 11.92 kB / 1.247 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.554e-05/0.3095, allocations: 11.98 kB / 1.247 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.3095, allocations: 0 / 1.247 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 6.138e-05/0.3096, allocations: 95.2 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3096, allocations: 4 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002579/0.3099, allocations: 12 kB / 1.247 GB, free: 4.246 MB / 0.9981 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.000703/0.3106, allocations: 0.7479 MB / 1.248 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002959/0.3109, allocations: 79.94 kB / 1.248 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3109, allocations: 448 / 1.248 GB, free: 3.395 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001207/0.311, allocations: 39.97 kB / 1.248 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.3113, allocations: 13.66 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.3132, allocations: 1.52 MB / 1.249 GB, free: 1.703 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3136, allocations: 0.6923 MB / 1.25 GB, free: 0.9844 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.164e-05/0.3136, allocations: 11.98 kB / 1.25 GB, free: 0.9727 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.3137, allocations: 22.25 kB / 1.25 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of SimCode: time 4.2e-07/0.3137, allocations: 0 / 1.25 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5397/0.8534, allocations: 2.112 MB / 1.252 GB, free: 14.77 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.757/8.611, allocations: 9.859 kB / 1.252 GB, free: 14.77 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv --start-time 1 --stop-time 6 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches