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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008818/0.0008818, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9023/0.9023, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.761/1.761, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.986e-06/2.986e-06, allocations: 0 / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.992e-05/2.29e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001393/0.001416, allocations: 0.7312 MB / 1 GB, free: 12.78 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.002467, allocations: 1.093 MB / 1.001 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.609e-05/0.002513, allocations: 0 / 1.001 GB, free: 11.67 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.051e-05/0.002544, allocations: 11.88 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.854e-05/0.002612, allocations: 11.86 kB / 1.001 GB, free: 11.65 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.002906, allocations: 63.69 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.869e-05/0.003005, allocations: 67.78 kB / 1.002 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.003109, allocations: 16.16 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.257e-05/0.003191, allocations: 43.91 kB / 1.002 GB, free: 11.46 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.444e-05/0.003236, allocations: 23.95 kB / 1.002 GB, free: 11.43 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.003252, allocations: 11.94 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.003301, allocations: 12 kB / 1.002 GB, free: 11.41 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.003322, allocations: 15.92 kB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.031e-05/0.003352, allocations: 27.91 kB / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.003482, allocations: 83.73 kB / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.003484, allocations: 0 / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.02e-07/0.003485, allocations: 0 / 1.002 GB, free: 11.29 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.003494, allocations: 4 kB / 1.002 GB, free: 11.28 MB / 0.9636 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.0003843/0.003878, allocations: 298 kB / 1.002 GB, free: 10.96 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.003916, allocations: 13.34 kB / 1.002 GB, free: 10.95 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.024e-05/0.003947, allocations: 38.73 kB / 1.002 GB, free: 10.9 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.003973, allocations: 8.891 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.519e-05/0.004049, allocations: 113.7 kB / 1.002 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.004061, allocations: 12.38 kB / 1.002 GB, free: 10.75 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.004071, allocations: 4.375 kB / 1.002 GB, free: 10.74 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.0042, allocations: 62.22 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.004207, allocations: 4.188 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.004215, allocations: 4.312 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.00422, allocations: 3.938 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.856e-05/0.004309, allocations: 43.95 kB / 1.002 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004136/0.004722, allocations: 283.9 kB / 1.003 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.00483, allocations: 58.52 kB / 1.003 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.959e-05/0.00488, allocations: 28.97 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.004898, allocations: 7.984 kB / 1.003 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.005032, allocations: 75.39 kB / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.005033, allocations: 0 / 1.003 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of matching and sorting (n=7): time 0.0002643/0.005298, allocations: 133.8 kB / 1.003 GB, free: 9.973 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.005336, allocations: 55.41 kB / 1.003 GB, free: 9.906 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.484e-05/0.005411, allocations: 121.8 kB / 1.003 GB, free: 9.777 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.005425, allocations: 25.7 kB / 1.003 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.332e-05/0.005498, allocations: 108 kB / 1.003 GB, free: 9.637 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.005516, allocations: 11.84 kB / 1.003 GB, free: 9.625 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.363e-05/0.00556, allocations: 33.7 kB / 1.003 GB, free: 9.586 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.403e-05/0.005644, allocations: 314.8 kB / 1.004 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.018e-05/0.005724, allocations: 31.97 kB / 1.004 GB, free: 9.238 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.087e-05/0.005805, allocations: 73.98 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.005941, allocations: 117.7 kB / 1.004 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.005945, allocations: 4 kB / 1.004 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001773/0.006122, allocations: 129.5 kB / 1.004 GB, free: 8.871 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.006135, allocations: 4 kB / 1.004 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.006141, allocations: 80 / 1.004 GB, free: 8.867 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.006154, allocations: 4.219 kB / 1.004 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.00624, allocations: 27.91 kB / 1.004 GB, free: 8.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.006248, allocations: 7.984 kB / 1.004 GB, free: 8.828 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.927e-05/0.006287, allocations: 4 kB / 1.004 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.006299, allocations: 11.98 kB / 1.004 GB, free: 8.812 MB / 0.9636 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.288e-05/0.006372, allocations: 131.6 kB / 1.004 GB, free: 8.676 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-06/0.00638, allocations: 3.953 kB / 1.004 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.006405, allocations: 12.44 kB / 1.004 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.006408, allocations: 0 / 1.004 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.006413, allocations: 0 / 1.004 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.006418, allocations: 4 kB / 1.004 GB, free: 8.656 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.006728, allocations: 345.5 kB / 1.004 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.006729, allocations: 0 / 1.004 GB, free: 8.27 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.423e-05/0.006754, allocations: 8 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.006757, allocations: 3.984 kB / 1.005 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.006764, allocations: 0 / 1.005 GB, free: 8.258 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.006766, allocations: 3.938 kB / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.006767, allocations: 0 / 1.005 GB, free: 8.254 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001526/0.00692, allocations: 207.3 kB / 1.005 GB, free: 8.035 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.706e-06/0.006928, allocations: 7.984 kB / 1.005 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.006939, allocations: 0 / 1.005 GB, free: 8.027 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.995e-05/0.006979, allocations: 8 kB / 1.005 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.007012, allocations: 7.984 kB / 1.005 GB, free: 8.012 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.007018, allocations: 3.938 kB / 1.005 GB, free: 8.008 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.732e-05/0.007055, allocations: 99.86 kB / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.007055, allocations: 0 / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001737/0.007229, allocations: 19.95 kB / 1.005 GB, free: 7.891 MB / 0.9636 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.0003901/0.007619, allocations: 0.7436 MB / 1.006 GB, free: 7.117 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.007779, allocations: 75.89 kB / 1.006 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.007781, allocations: 0 / 1.006 GB, free: 7.043 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 6.05e-05/0.007841, allocations: 40.34 kB / 1.006 GB, free: 7.004 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.008027, allocations: 19.88 kB / 1.006 GB, free: 6.984 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.009141, allocations: 1.517 MB / 1.007 GB, free: 5.344 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.741e-05/0.009198, allocations: 79.27 kB / 1.007 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 2.967e-05/0.009228, allocations: 4 kB / 1.007 GB, free: 5.242 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/0.009267, allocations: 28.48 kB / 1.007 GB, free: 5.215 MB / 0.9636 GB Notification: Performance of SimCode: time 6.61e-07/0.009268, allocations: 4 kB / 1.007 GB, free: 5.211 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.02474, allocations: 2.822 MB / 1.01 GB, free: 2.594 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.757/6.782, allocations: 12.05 kB / 1.01 GB, free: 2.582 MB / 0.9636 GB " [Timeout remaining time 293] (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 800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable samTri.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv. Warning: Get data of variable samTri1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.984031027182937]