Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001886/0.001886, allocations: 107.3 kB / 16.46 MB, free: 6.508 MB / 14.72 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.002251/0.002251, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 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 1.66/1.66, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] 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 3.42/3.42, allocations: 0.505 GB / 0.8066 GB, free: 23.05 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 67.95 kB / 1.172 GB, free: 17.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3792/0.3816, allocations: 180.2 MB / 1.348 GB, free: 10.01 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002029/0.3836, allocations: 0.7575 MB / 1.348 GB, free: 9.258 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001625/0.3853, allocations: 1.202 MB / 1.35 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.3853, allocations: 0 / 1.35 GB, free: 8.043 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.234e-05/0.3854, allocations: 11.86 kB / 1.35 GB, free: 8.031 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.228e-05/0.3854, allocations: 19.92 kB / 1.35 GB, free: 8.012 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005172/0.386, allocations: 138.9 kB / 1.35 GB, free: 7.879 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.3862, allocations: 127.7 kB / 1.35 GB, free: 7.754 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.3863, allocations: 24.16 kB / 1.35 GB, free: 7.727 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.759e-05/0.3864, allocations: 47.91 kB / 1.35 GB, free: 7.68 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.3865, allocations: 47.83 kB / 1.35 GB, free: 7.633 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.3865, allocations: 15.98 kB / 1.35 GB, free: 7.617 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.018e-05/0.3866, allocations: 31.97 kB / 1.35 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.379e-05/0.3866, allocations: 8 kB / 1.35 GB, free: 7.578 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.559e-05/0.3867, allocations: 51.78 kB / 1.35 GB, free: 7.527 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.3869, allocations: 139.7 kB / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3869, allocations: 0 / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3869, allocations: 0 / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.3869, allocations: 0 / 1.35 GB, free: 7.391 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000755/0.3877, allocations: 420.8 kB / 1.351 GB, free: 6.926 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3877, allocations: 11.98 kB / 1.351 GB, free: 6.914 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.272e-05/0.3878, allocations: 38.75 kB / 1.351 GB, free: 6.867 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.3879, allocations: 16.92 kB / 1.351 GB, free: 6.852 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.388, allocations: 168.3 kB / 1.351 GB, free: 6.648 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.388, allocations: 4.375 kB / 1.351 GB, free: 6.645 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.3881, allocations: 12.38 kB / 1.351 GB, free: 6.633 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.3883, allocations: 77.91 kB / 1.351 GB, free: 6.551 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3883, allocations: 0 / 1.351 GB, free: 6.551 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3883, allocations: 3.984 kB / 1.351 GB, free: 6.547 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3883, allocations: 0 / 1.351 GB, free: 6.547 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.3885, allocations: 51.95 kB / 1.351 GB, free: 6.496 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000555/0.3891, allocations: 340.6 kB / 1.351 GB, free: 6.113 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.3893, allocations: 50.55 kB / 1.351 GB, free: 6.055 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.3894, allocations: 36.95 kB / 1.351 GB, free: 6.016 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.3894, allocations: 4 kB / 1.351 GB, free: 6.012 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003023/0.3897, allocations: 91.38 kB / 1.352 GB, free: 5.91 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.3897, allocations: 0 / 1.352 GB, free: 5.91 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0004813/0.3902, allocations: 145.6 kB / 1.352 GB, free: 5.762 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.3902, allocations: 59.34 kB / 1.352 GB, free: 5.691 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.3903, allocations: 129.7 kB / 1.352 GB, free: 5.555 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/0.3904, allocations: 33.7 kB / 1.352 GB, free: 5.516 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.3904, allocations: 88.14 kB / 1.352 GB, free: 5.426 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.3905, allocations: 23.78 kB / 1.352 GB, free: 5.402 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/0.3906, allocations: 37.7 kB / 1.352 GB, free: 5.359 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3907, allocations: 322.8 kB / 1.352 GB, free: 5.035 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.3909, allocations: 55.97 kB / 1.352 GB, free: 4.98 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.3911, allocations: 93.05 kB / 1.353 GB, free: 4.871 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.3914, allocations: 154.7 kB / 1.353 GB, free: 4.695 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3914, allocations: 0 / 1.353 GB, free: 4.695 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004818/0.3919, allocations: 211.1 kB / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.136e-05/0.3919, allocations: 37.86 kB / 1.353 GB, free: 4.434 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.3919, allocations: 0 / 1.353 GB, free: 4.434 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3919, allocations: 4 kB / 1.353 GB, free: 4.43 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.392, allocations: 19.92 kB / 1.353 GB, free: 4.41 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.392, allocations: 4.312 kB / 1.353 GB, free: 4.406 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3922, allocations: 31.95 kB / 1.353 GB, free: 4.375 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.3923, allocations: 15.94 kB / 1.353 GB, free: 4.359 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001116/0.3924, allocations: 129.8 kB / 1.353 GB, free: 4.223 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.3924, allocations: 3.953 kB / 1.353 GB, free: 4.219 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.3927, allocations: 129.9 kB / 1.353 GB, free: 4.086 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3927, allocations: 0 / 1.353 GB, free: 4.086 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3927, allocations: 0 / 1.353 GB, free: 4.086 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3927, allocations: 3.984 kB / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004606/0.3932, allocations: 374.5 kB / 1.354 GB, free: 3.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3932, allocations: 0 / 1.354 GB, free: 3.66 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.306e-05/0.3933, allocations: 15.98 kB / 1.354 GB, free: 3.645 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3933, allocations: 3.938 kB / 1.354 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.3933, allocations: 4 kB / 1.354 GB, free: 3.637 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.3933, allocations: 7.875 kB / 1.354 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3933, allocations: 0 / 1.354 GB, free: 3.629 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.3936, allocations: 216 kB / 1.354 GB, free: 3.402 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.373e-05/0.3937, allocations: 85.06 kB / 1.354 GB, free: 3.301 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.3937, allocations: 3.984 kB / 1.354 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.748e-05/0.3938, allocations: 7.938 kB / 1.354 GB, free: 3.289 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/0.3938, allocations: 11.98 kB / 1.354 GB, free: 3.277 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3938, allocations: 0 / 1.354 GB, free: 3.277 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.989e-05/0.3939, allocations: 95.81 kB / 1.354 GB, free: 3.184 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3939, allocations: 4 kB / 1.354 GB, free: 3.18 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002685/0.3942, allocations: 20 kB / 1.354 GB, free: 3.16 MB / 1.045 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007015/0.3949, allocations: 0.7552 MB / 1.355 GB, free: 2.379 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003962/0.3953, allocations: 167.3 kB / 1.355 GB, free: 2.203 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3953, allocations: 0 / 1.355 GB, free: 2.203 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.3954, allocations: 39.91 kB / 1.355 GB, free: 2.164 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.3957, allocations: 15.94 kB / 1.355 GB, free: 2.148 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.3979, allocations: 1.724 MB / 1.357 GB, free: 316 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.3983, allocations: 0.6924 MB / 1.357 GB, free: 15.59 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.3983, allocations: 11.92 kB / 1.357 GB, free: 15.58 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.678e-05/0.3983, allocations: 19.38 kB / 1.357 GB, free: 15.56 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.3983, allocations: 4 kB / 1.357 GB, free: 15.55 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.4249, allocations: 2.579 MB / 1.36 GB, free: 13.13 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.365/8.789, allocations: 5.703 kB / 1.36 GB, free: 13.13 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable booPul.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.958132657920942]