Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001503/0.001503, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001592/0.001592, allocations: 215.1 kB / 22.26 MB, free: 5.082 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.536/1.536, allocations: 230.6 MB / 256 MB, free: 8.043 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.306/3.306, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.002062/0.002062, allocations: 71.64 kB / 1.177 GB, free: 17.29 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3905, allocations: 180.2 MB / 1.353 GB, free: 8.617 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002175/0.3926, allocations: 0.7596 MB / 1.354 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.3941, allocations: 1.116 MB / 1.355 GB, free: 6.73 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.191e-05/0.3942, allocations: 4 kB / 1.355 GB, free: 6.727 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.3942, allocations: 3.938 kB / 1.355 GB, free: 6.723 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.953e-05/0.3943, allocations: 11.88 kB / 1.355 GB, free: 6.711 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.3946, allocations: 56.69 kB / 1.355 GB, free: 6.656 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.3947, allocations: 71.83 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3949, allocations: 12.17 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.874e-05/0.3949, allocations: 31.86 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.762e-05/0.395, allocations: 35.89 kB / 1.355 GB, free: 6.504 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.3951, allocations: 8 kB / 1.355 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.416e-05/0.3952, allocations: 15.98 kB / 1.355 GB, free: 6.48 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.423e-05/0.3952, allocations: 11.94 kB / 1.355 GB, free: 6.469 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 5.331e-05/0.3952, allocations: 31.86 kB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.3954, allocations: 87.89 kB / 1.355 GB, free: 6.352 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3954, allocations: 0 / 1.355 GB, free: 6.352 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3954, allocations: 3.938 kB / 1.355 GB, free: 6.348 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.3954, allocations: 0 / 1.355 GB, free: 6.348 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006823/0.3961, allocations: 310 kB / 1.355 GB, free: 6.016 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.3962, allocations: 8.031 kB / 1.355 GB, free: 6.008 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.304e-05/0.3962, allocations: 34.75 kB / 1.355 GB, free: 5.965 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.3963, allocations: 8.891 kB / 1.355 GB, free: 5.957 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.3964, allocations: 118.5 kB / 1.356 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.3964, allocations: 4.375 kB / 1.356 GB, free: 5.812 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.72e-05/0.3965, allocations: 4.375 kB / 1.356 GB, free: 5.809 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002421/0.3967, allocations: 81.84 kB / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.3967, allocations: 0 / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.3967, allocations: 0 / 1.356 GB, free: 5.723 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3967, allocations: 4 kB / 1.356 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.3969, allocations: 43.95 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007708/0.3977, allocations: 295.7 kB / 1.356 GB, free: 5.344 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.3979, allocations: 54.55 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.991e-05/0.398, allocations: 24.97 kB / 1.356 GB, free: 5.254 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.398, allocations: 4 kB / 1.356 GB, free: 5.25 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002632/0.3983, allocations: 79.33 kB / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.3983, allocations: 0 / 1.356 GB, free: 5.16 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0005235/0.3988, allocations: 133.6 kB / 1.356 GB, free: 5.023 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.3988, allocations: 51.41 kB / 1.356 GB, free: 4.961 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.399, allocations: 129.8 kB / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.399, allocations: 25.7 kB / 1.356 GB, free: 4.793 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.252e-05/0.3991, allocations: 92.14 kB / 1.357 GB, free: 4.699 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.3991, allocations: 11.89 kB / 1.357 GB, free: 4.688 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.331e-05/0.3991, allocations: 29.72 kB / 1.357 GB, free: 4.652 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3993, allocations: 322.8 kB / 1.357 GB, free: 4.328 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001096/0.3994, allocations: 31.91 kB / 1.357 GB, free: 4.297 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.3995, allocations: 77.92 kB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.3998, allocations: 109.9 kB / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3998, allocations: 0 / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003173/0.4001, allocations: 133.6 kB / 1.357 GB, free: 3.934 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.4001, allocations: 4 kB / 1.357 GB, free: 3.93 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.4001, allocations: 4.312 kB / 1.357 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.4002, allocations: 0 / 1.357 GB, free: 3.926 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.4003, allocations: 19.92 kB / 1.357 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4003, allocations: 4 kB / 1.357 GB, free: 3.902 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.683e-05/0.4004, allocations: 19.88 kB / 1.357 GB, free: 3.883 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.4004, allocations: 11.98 kB / 1.357 GB, free: 3.871 MB / 1.045 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.0001141/0.4005, allocations: 129.8 kB / 1.357 GB, free: 3.734 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.4005, allocations: 11.94 kB / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.4006, allocations: 8.375 kB / 1.357 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4006, allocations: 0 / 1.357 GB, free: 3.715 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.4006, allocations: 4 kB / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4006, allocations: 0 / 1.357 GB, free: 3.711 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005331/0.4011, allocations: 349.4 kB / 1.358 GB, free: 3.32 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4011, allocations: 4 kB / 1.358 GB, free: 3.316 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.106e-05/0.4012, allocations: 8 kB / 1.358 GB, free: 3.309 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4012, allocations: 3.984 kB / 1.358 GB, free: 3.305 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.4012, allocations: 3.984 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4012, allocations: 3.938 kB / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4012, allocations: 0 / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002974/0.4015, allocations: 199.5 kB / 1.358 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.397e-05/0.4015, allocations: 7.953 kB / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.4015, allocations: 7.984 kB / 1.358 GB, free: 3.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.789e-05/0.4016, allocations: 3.938 kB / 1.358 GB, free: 3.066 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.4016, allocations: 7.984 kB / 1.358 GB, free: 3.059 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.4016, allocations: 11.88 kB / 1.358 GB, free: 3.047 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.788e-05/0.4017, allocations: 95.27 kB / 1.358 GB, free: 2.953 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4017, allocations: 0 / 1.358 GB, free: 2.953 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002527/0.402, allocations: 15.94 kB / 1.358 GB, free: 2.938 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 (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.0006904/0.4026, allocations: 0.7359 MB / 1.359 GB, free: 2.176 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002812/0.4029, allocations: 83.88 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4029, allocations: 0 / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.403, allocations: 31.97 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.4033, allocations: 13.48 kB / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.4053, allocations: 1.526 MB / 1.36 GB, free: 416 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.4057, allocations: 0.6846 MB / 1.361 GB, free: 15.7 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.238e-05/0.4057, allocations: 7.984 kB / 1.361 GB, free: 15.69 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.4058, allocations: 19.44 kB / 1.361 GB, free: 15.67 MB / 1.061 GB Notification: Performance of SimCode: time 8.32e-07/0.4058, allocations: 4 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.435, allocations: 2.232 MB / 1.363 GB, free: 13.56 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.24, allocations: 13.22 kB / 1.363 GB, free: 13.56 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.311035663999974]