Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001525/0.001525, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001605/0.001605, allocations: 211.9 kB / 22.24 MB, free: 5.262 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.294/3.294, allocations: 0.4892 GB / 0.7944 GB, free: 35.71 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002067/0.002067, allocations: 72.77 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3809, allocations: 176.1 MB / 1.325 GB, free: 2.426 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.003107/0.384, allocations: 0.7397 MB / 1.326 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00192/0.3859, allocations: 1.089 MB / 1.327 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.386, allocations: 0 / 1.327 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.289e-05/0.386, allocations: 11.81 kB / 1.327 GB, free: 0.5781 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.278e-05/0.3861, allocations: 19.86 kB / 1.327 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.3865, allocations: 51.86 kB / 1.327 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.3867, allocations: 75.72 kB / 1.327 GB, free: 444 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.3868, allocations: 20.17 kB / 1.327 GB, free: 420 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.3869, allocations: 27.91 kB / 1.327 GB, free: 392 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.387, allocations: 35.84 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.387, allocations: 4 kB / 1.327 GB, free: 352 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.88e-05/0.3871, allocations: 16 kB / 1.327 GB, free: 336 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.3871, allocations: 15.92 kB / 1.327 GB, free: 320 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.489e-05/0.3872, allocations: 31.84 kB / 1.327 GB, free: 288 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.3874, allocations: 83.91 kB / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3874, allocations: 0 / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3874, allocations: 0 / 1.327 GB, free: 204 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3874, allocations: 0 / 1.327 GB, free: 204 kB / 1.014 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.0006285/0.388, allocations: 302.1 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.388, allocations: 12.03 kB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.3881, allocations: 38.69 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.3881, allocations: 8.891 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3882, allocations: 110.5 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.3883, allocations: 4.375 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.3883, allocations: 8.375 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002168/0.3885, allocations: 69.97 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3885, allocations: 0 / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.3885, allocations: 3.938 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3885, allocations: 0 / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.3887, allocations: 51.95 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006599/0.3894, allocations: 279.8 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.3895, allocations: 54.58 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.928e-05/0.3896, allocations: 32.95 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.3897, allocations: 4 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.3899, allocations: 75.38 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.3899, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004501/0.3904, allocations: 133.5 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.3904, allocations: 55.39 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3905, allocations: 121.8 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.3906, allocations: 25.7 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.881e-05/0.3906, allocations: 108 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.3907, allocations: 11.91 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.3907, allocations: 29.7 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3909, allocations: 322.8 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.391, allocations: 27.97 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.3911, allocations: 69.98 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.3914, allocations: 113.8 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3914, allocations: 0 / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003308/0.3917, allocations: 133.6 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3917, allocations: 4 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3917, allocations: 4 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3917, allocations: 3.984 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.3919, allocations: 23.92 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.3919, allocations: 0 / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.455e-05/0.392, allocations: 11.94 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.392, allocations: 11.98 kB / 1.329 GB, free: 13.74 MB / 1.029 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.0001073/0.3921, allocations: 118.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.3921, allocations: 12.02 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.3921, allocations: 8.375 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.3921, allocations: 4 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3922, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3922, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.3927, allocations: 345.5 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3927, allocations: 4 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.494e-05/0.3927, allocations: 7.984 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3927, allocations: 4 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.3927, allocations: 4 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.3927, allocations: 7.875 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3927, allocations: 0 / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003438/0.3931, allocations: 207.4 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.007e-05/0.3931, allocations: 11.88 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.3931, allocations: 8 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.3932, allocations: 11.92 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.3933, allocations: 0 / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.3933, allocations: 8 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.998e-05/0.3933, allocations: 91.27 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3933, allocations: 0 / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002654/0.3936, allocations: 16 kB / 1.33 GB, free: 12.81 MB / 1.029 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.0006972/0.3943, allocations: 0.7435 MB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.3946, allocations: 76.5 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3946, allocations: 0 / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.3947, allocations: 35.91 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.395, allocations: 14.8 kB / 1.331 GB, free: 11.92 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.397, allocations: 1.528 MB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.718e-05/0.397, allocations: 71.33 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.384e-05/0.3971, allocations: 8 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.181e-05/0.3971, allocations: 23.42 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of SimCode: time 5.61e-07/0.3971, allocations: 0 / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.4289, allocations: 2.678 MB / 1.335 GB, free: 7.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.95, allocations: 13 kB / 1.335 GB, free: 7.605 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri.y from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv failed! Error: Could not read variable samTri1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv. Warning: Get data of variable samTri1.y from file Buildings_12_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.97966466518119]