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.001804/0.001804, allocations: 103.7 kB / 16.45 MB, free: 6.504 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.00212/0.00212, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.512/1.512, allocations: 230.6 MB / 252.8 MB, free: 8.98 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.339/3.339, allocations: 0.505 GB / 0.8066 GB, free: 23.25 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.002035/0.002035, allocations: 73.25 kB / 1.172 GB, free: 17.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3902/0.3922, allocations: 180.2 MB / 1.348 GB, free: 9.992 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002079/0.3943, allocations: 0.7459 MB / 1.349 GB, free: 9.25 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3958, allocations: 1.104 MB / 1.35 GB, free: 8.133 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.945e-05/0.3959, allocations: 4 kB / 1.35 GB, free: 8.129 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.322e-05/0.3959, allocations: 11.88 kB / 1.35 GB, free: 8.117 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.128e-05/0.396, allocations: 7.922 kB / 1.35 GB, free: 8.109 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.3963, allocations: 54.95 kB / 1.35 GB, free: 8.059 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.3964, allocations: 71.78 kB / 1.35 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.3965, allocations: 16.16 kB / 1.35 GB, free: 7.969 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.841e-05/0.3966, allocations: 31.86 kB / 1.35 GB, free: 7.938 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.926e-05/0.3966, allocations: 27.91 kB / 1.35 GB, free: 7.91 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.3967, allocations: 8 kB / 1.35 GB, free: 7.902 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.947e-05/0.3967, allocations: 23.97 kB / 1.35 GB, free: 7.879 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.3967, allocations: 19.92 kB / 1.35 GB, free: 7.859 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.462e-05/0.3968, allocations: 27.86 kB / 1.35 GB, free: 7.832 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.397, allocations: 83.91 kB / 1.35 GB, free: 7.75 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.397, allocations: 0 / 1.35 GB, free: 7.75 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.764e-06/0.397, allocations: 3.938 kB / 1.35 GB, free: 7.746 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.397, allocations: 0 / 1.35 GB, free: 7.746 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.0006423/0.3976, allocations: 387.1 kB / 1.35 GB, free: 7.32 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3976, allocations: 15.97 kB / 1.35 GB, free: 7.305 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.493e-05/0.3977, allocations: 38.69 kB / 1.35 GB, free: 7.258 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.3978, allocations: 12.89 kB / 1.35 GB, free: 7.246 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.3979, allocations: 164.4 kB / 1.351 GB, free: 7.047 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3979, allocations: 8.375 kB / 1.351 GB, free: 7.039 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.466e-05/0.3979, allocations: 4.375 kB / 1.351 GB, free: 7.035 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.3981, allocations: 69.97 kB / 1.351 GB, free: 6.961 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.3982, allocations: 0 / 1.351 GB, free: 6.961 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.3982, allocations: 3.938 kB / 1.351 GB, free: 6.957 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3982, allocations: 0 / 1.351 GB, free: 6.957 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.3984, allocations: 47.95 kB / 1.351 GB, free: 6.91 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006782/0.399, allocations: 332.6 kB / 1.351 GB, free: 6.535 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.3992, allocations: 54.58 kB / 1.351 GB, free: 6.473 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.3993, allocations: 28.97 kB / 1.351 GB, free: 6.441 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.3994, allocations: 4 kB / 1.351 GB, free: 6.438 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.3996, allocations: 71.38 kB / 1.351 GB, free: 6.355 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.3996, allocations: 0 / 1.351 GB, free: 6.355 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004592/0.4001, allocations: 133.5 kB / 1.351 GB, free: 6.219 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.4001, allocations: 63.39 kB / 1.351 GB, free: 6.145 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.4002, allocations: 126.1 kB / 1.351 GB, free: 6.012 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.4003, allocations: 29.7 kB / 1.351 GB, free: 5.977 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.4003, allocations: 84.14 kB / 1.352 GB, free: 5.891 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.4003, allocations: 15.91 kB / 1.352 GB, free: 5.875 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.987e-05/0.4004, allocations: 33.64 kB / 1.352 GB, free: 5.836 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4006, allocations: 322.8 kB / 1.352 GB, free: 5.512 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.4007, allocations: 35.97 kB / 1.352 GB, free: 5.477 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.4008, allocations: 74.03 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002615/0.4011, allocations: 105.9 kB / 1.352 GB, free: 5.258 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4011, allocations: 0 / 1.352 GB, free: 5.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003491/0.4015, allocations: 133.5 kB / 1.352 GB, free: 5.121 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.4015, allocations: 8 kB / 1.352 GB, free: 5.113 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4015, allocations: 0 / 1.352 GB, free: 5.113 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.4015, allocations: 4 kB / 1.352 GB, free: 5.109 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.4016, allocations: 27.86 kB / 1.352 GB, free: 5.082 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.4017, allocations: 4 kB / 1.352 GB, free: 5.078 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.866e-05/0.4017, allocations: 16.09 kB / 1.352 GB, free: 5.062 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.4018, allocations: 8 kB / 1.352 GB, free: 5.055 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.0001003/0.4019, allocations: 117.8 kB / 1.352 GB, free: 4.93 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.572e-05/0.4019, allocations: 8 kB / 1.352 GB, free: 4.922 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.4019, allocations: 12.36 kB / 1.352 GB, free: 4.91 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.4019, allocations: 0 / 1.352 GB, free: 4.91 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4019, allocations: 0 / 1.352 GB, free: 4.91 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.4019, allocations: 3.984 kB / 1.352 GB, free: 4.906 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005374/0.4025, allocations: 382.4 kB / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4025, allocations: 0 / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.617e-05/0.4025, allocations: 8 kB / 1.353 GB, free: 4.469 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4025, allocations: 0 / 1.353 GB, free: 4.469 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.4025, allocations: 3.984 kB / 1.353 GB, free: 4.465 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.4025, allocations: 11.88 kB / 1.353 GB, free: 4.453 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4025, allocations: 0 / 1.353 GB, free: 4.453 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003366/0.4029, allocations: 199.8 kB / 1.353 GB, free: 4.242 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.891e-05/0.4029, allocations: 85.06 kB / 1.353 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.4029, allocations: 3.984 kB / 1.353 GB, free: 4.137 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.75e-05/0.403, allocations: 11.88 kB / 1.353 GB, free: 4.125 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.4031, allocations: 11.98 kB / 1.353 GB, free: 4.113 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.4031, allocations: 4 kB / 1.353 GB, free: 4.109 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.063e-05/0.4031, allocations: 91.27 kB / 1.353 GB, free: 4.02 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4031, allocations: 4 kB / 1.353 GB, free: 4.016 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002626/0.4034, allocations: 23.94 kB / 1.353 GB, free: 3.992 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.0007278/0.4041, allocations: 0.7319 MB / 1.354 GB, free: 3.234 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003017/0.4044, allocations: 79.88 kB / 1.354 GB, free: 3.156 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4044, allocations: 0 / 1.354 GB, free: 3.156 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.4046, allocations: 39.91 kB / 1.354 GB, free: 3.117 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.4048, allocations: 7.938 kB / 1.354 GB, free: 3.109 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4068, allocations: 1.516 MB / 1.356 GB, free: 1.469 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.4072, allocations: 0.6924 MB / 1.356 GB, free: 0.75 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.139e-05/0.4072, allocations: 11.98 kB / 1.356 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.4073, allocations: 23.38 kB / 1.356 GB, free: 0.7148 MB / 1.045 GB Notification: Performance of SimCode: time 4.91e-07/0.4073, allocations: 0 / 1.356 GB, free: 0.7148 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03218/0.4394, allocations: 2.123 MB / 1.358 GB, free: 14.73 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.581, allocations: 3.75 kB / 1.358 GB, free: 14.73 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.643010744126514]