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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.006356/0.006356, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001196/0.001196, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.743/2.743, allocations: 469.4 MB / 0.7421 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 63.91 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8961/0.8977, allocations: 159.1 MB / 1.22 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001917/0.8996, allocations: 0.7447 MB / 1.22 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.901, allocations: 1.077 MB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.665e-05/0.9011, allocations: 0 / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.292e-05/0.9011, allocations: 3.938 kB / 1.222 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.669e-05/0.9012, allocations: 15.88 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.9016, allocations: 55.81 kB / 1.222 GB, free: 364 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/0.9017, allocations: 71.78 kB / 1.222 GB, free: 292 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.9018, allocations: 20.16 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.95e-05/0.9019, allocations: 27.92 kB / 1.222 GB, free: 240 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.501e-05/0.902, allocations: 31.84 kB / 1.222 GB, free: 208 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.902, allocations: 4 kB / 1.222 GB, free: 204 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 6.772e-05/0.9021, allocations: 23.98 kB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.9021, allocations: 19.92 kB / 1.222 GB, free: 160 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.663e-05/0.9021, allocations: 27.86 kB / 1.222 GB, free: 132 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.9023, allocations: 86.34 kB / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.9023, allocations: 0 / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9023, allocations: 0 / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.9024, allocations: 0 / 1.222 GB, free: 48 kB / 0.9356 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.0005443/0.9029, allocations: 386.8 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.903, allocations: 8.031 kB / 1.222 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.606e-05/0.903, allocations: 34.75 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.9031, allocations: 16.88 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001083/0.9032, allocations: 176.2 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.9032, allocations: 4.375 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.9032, allocations: 8.375 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.9034, allocations: 73.91 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.9034, allocations: 0 / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.9035, allocations: 0 / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.9035, allocations: 0 / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.9036, allocations: 51.95 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.9043, allocations: 320.7 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.9045, allocations: 54.55 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.9046, allocations: 36.95 kB / 1.223 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.9046, allocations: 3.984 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.9048, allocations: 79.33 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.935e-06/0.9048, allocations: 96 / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.000402/0.9052, allocations: 125.6 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.9053, allocations: 63.39 kB / 1.223 GB, free: 14.44 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.9054, allocations: 121.8 kB / 1.223 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.9054, allocations: 25.7 kB / 1.223 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/0.9055, allocations: 96.06 kB / 1.224 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.9055, allocations: 19.89 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/0.9056, allocations: 33.7 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.74e-05/0.9057, allocations: 322.8 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.9058, allocations: 31.97 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.9059, allocations: 77.86 kB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.9062, allocations: 105.9 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.9062, allocations: 0 / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003238/0.9065, allocations: 133.5 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9065, allocations: 8 kB / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.9066, allocations: 0 / 1.224 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.9066, allocations: 7.938 kB / 1.224 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.9067, allocations: 19.97 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.9067, allocations: 0 / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.947e-05/0.9068, allocations: 15.89 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.9068, allocations: 12.2 kB / 1.224 GB, free: 13.35 MB / 0.9512 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 9.36e-05/0.9069, allocations: 131.9 kB / 1.224 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.907, allocations: 7.953 kB / 1.224 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.355e-05/0.907, allocations: 8.375 kB / 1.224 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.907, allocations: 4 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.907, allocations: 0 / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.907, allocations: 0 / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004594/0.9075, allocations: 374.4 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9075, allocations: 0 / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.688e-05/0.9076, allocations: 11.98 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.9076, allocations: 0 / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.9076, allocations: 0 / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.9076, allocations: 3.938 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.9076, allocations: 4 kB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.9079, allocations: 199.5 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.899e-05/0.908, allocations: 81.06 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.908, allocations: 4 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.017e-05/0.9081, allocations: 19.92 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.9081, allocations: 3.938 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.9081, allocations: 7.984 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.257e-05/0.9082, allocations: 87.94 kB / 1.225 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9082, allocations: 0 / 1.225 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002725/0.9085, allocations: 23.98 kB / 1.225 GB, free: 12.29 MB / 0.9512 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.0006065/0.9091, allocations: 0.74 MB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003039/0.9094, allocations: 87.81 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9094, allocations: 0 / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.9095, allocations: 31.97 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.9098, allocations: 19.86 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.9115, allocations: 1.518 MB / 1.228 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.9117, allocations: 0.6885 MB / 1.228 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.136e-05/0.9118, allocations: 4 kB / 1.228 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.278e-05/0.9118, allocations: 27.42 kB / 1.228 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of SimCode: time 3.01e-07/0.9118, allocations: 0 / 1.228 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.9309, allocations: 2.122 MB / 1.23 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.736, allocations: 10.55 kB / 1.23 GB, free: 7.059 MB / 0.9512 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 50 --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