Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001311/0.001311, allocations: 113 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.001446/0.001446, allocations: 209.4 kB / 22.25 MB, free: 5.086 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.545/1.545, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.899/2.899, allocations: 476.7 MB / 0.7707 GB, free: 4.25 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_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_11_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.002222/0.002222, allocations: 73.08 kB / 1.117 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.4017, allocations: 169.9 MB / 1.283 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002612/0.4043, allocations: 0.7702 MB / 1.284 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00166/0.4059, allocations: 1.106 MB / 1.285 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.649e-05/0.406, allocations: 0 / 1.285 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.437e-05/0.4061, allocations: 7.938 kB / 1.285 GB, free: 1.914 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.303e-05/0.4062, allocations: 15.86 kB / 1.285 GB, free: 1.898 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.4065, allocations: 51.83 kB / 1.285 GB, free: 1.848 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.4067, allocations: 67.84 kB / 1.285 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.4068, allocations: 16.16 kB / 1.285 GB, free: 1.762 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.382e-05/0.4069, allocations: 31.86 kB / 1.285 GB, free: 1.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.856e-05/0.407, allocations: 27.91 kB / 1.285 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.407, allocations: 8 kB / 1.285 GB, free: 1.695 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.461e-05/0.4071, allocations: 23.97 kB / 1.285 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.4071, allocations: 23.86 kB / 1.285 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.4072, allocations: 27.88 kB / 1.286 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.4074, allocations: 83.89 kB / 1.286 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.4074, allocations: 0 / 1.286 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4074, allocations: 0 / 1.286 GB, free: 1.539 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.858e-06/0.4074, allocations: 0 / 1.286 GB, free: 1.539 MB / 0.9825 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.0006136/0.408, allocations: 303.9 kB / 1.286 GB, free: 1.215 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.4081, allocations: 12.03 kB / 1.286 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.4081, allocations: 34.75 kB / 1.286 GB, free: 1.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.4082, allocations: 12.88 kB / 1.286 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.4083, allocations: 114.5 kB / 1.286 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.4083, allocations: 8.375 kB / 1.286 GB, free: 1.004 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.4083, allocations: 8.312 kB / 1.286 GB, free: 0.9961 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.4085, allocations: 65.97 kB / 1.286 GB, free: 0.9258 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.4085, allocations: 3.938 kB / 1.286 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.018e-05/0.4086, allocations: 4 kB / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.4086, allocations: 0 / 1.286 GB, free: 0.918 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.4087, allocations: 51.94 kB / 1.286 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.4095, allocations: 299.7 kB / 1.286 GB, free: 0.5312 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.4096, allocations: 50.55 kB / 1.287 GB, free: 484 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.4097, allocations: 24.97 kB / 1.287 GB, free: 456 kB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.4098, allocations: 8 kB / 1.287 GB, free: 448 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.41, allocations: 83.41 kB / 1.287 GB, free: 352 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.774e-06/0.41, allocations: 0 / 1.287 GB, free: 352 kB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000438/0.4105, allocations: 125.6 kB / 1.287 GB, free: 220 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.4105, allocations: 59.39 kB / 1.287 GB, free: 148 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.4107, allocations: 129.8 kB / 1.287 GB, free: 8 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.874e-05/0.4107, allocations: 25.7 kB / 1.287 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.29e-05/0.4108, allocations: 92.09 kB / 1.287 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.4108, allocations: 19.89 kB / 1.287 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.79e-05/0.4109, allocations: 33.64 kB / 1.287 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.411, allocations: 322.8 kB / 1.287 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.4111, allocations: 27.97 kB / 1.287 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.4113, allocations: 82.3 kB / 1.287 GB, free: 15.37 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.4115, allocations: 105.9 kB / 1.288 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4115, allocations: 0 / 1.288 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000324/0.4118, allocations: 137.4 kB / 1.288 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.4118, allocations: 8 kB / 1.288 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4119, allocations: 0 / 1.288 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.4119, allocations: 4 kB / 1.288 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.412, allocations: 15.98 kB / 1.288 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.412, allocations: 3.984 kB / 1.288 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.675e-05/0.4121, allocations: 11.94 kB / 1.288 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.4121, allocations: 4.219 kB / 1.288 GB, free: 15.06 MB / 0.9981 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.0001071/0.4122, allocations: 133.7 kB / 1.288 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.4122, allocations: 7.953 kB / 1.288 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.538e-05/0.4123, allocations: 4.375 kB / 1.288 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.4123, allocations: 4 kB / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.4123, allocations: 0 / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.4123, allocations: 0 / 1.288 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.4127, allocations: 353.8 kB / 1.288 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4127, allocations: 4 kB / 1.288 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.249e-05/0.4128, allocations: 7.984 kB / 1.288 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4128, allocations: 0 / 1.288 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.4128, allocations: 0 / 1.288 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.4128, allocations: 7.875 kB / 1.288 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4128, allocations: 4.078 kB / 1.288 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003002/0.4131, allocations: 203.4 kB / 1.288 GB, free: 14.27 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.424e-05/0.4131, allocations: 7.984 kB / 1.288 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.4131, allocations: 0 / 1.288 GB, free: 14.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.903e-05/0.4132, allocations: 15.88 kB / 1.288 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.4133, allocations: 3.984 kB / 1.289 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.4133, allocations: 4 kB / 1.289 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.717e-05/0.4134, allocations: 91.27 kB / 1.289 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.4134, allocations: 0 / 1.289 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002684/0.4137, allocations: 27.89 kB / 1.289 GB, free: 14.12 MB / 0.9981 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.0006611/0.4143, allocations: 0.734 MB / 1.289 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000282/0.4146, allocations: 75.89 kB / 1.289 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4146, allocations: 4 kB / 1.289 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.4147, allocations: 31.97 kB / 1.289 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.415, allocations: 15.94 kB / 1.289 GB, free: 13.24 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.4169, allocations: 1.525 MB / 1.291 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.4172, allocations: 0.6885 MB / 1.292 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.512e-05/0.4173, allocations: 8 kB / 1.292 GB, free: 10.87 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.256e-05/0.4173, allocations: 27.42 kB / 1.292 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.4173, allocations: 0 / 1.292 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03024/0.4476, allocations: 2.226 MB / 1.294 GB, free: 8.754 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.55, allocations: 6.375 kB / 1.294 GB, free: 8.75 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.336807666812092]