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.00134/0.00134, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001569/0.001569, allocations: 217.1 kB / 22.25 MB, free: 5.129 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.48/1.48, allocations: 230.6 MB / 256 MB, free: 7.961 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.38/3.38, allocations: 0.49 GB / 0.7951 GB, free: 33.48 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.002036/0.002036, allocations: 73.31 kB / 1.154 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3911, allocations: 176.1 MB / 1.326 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002213/0.3933, allocations: 0.755 MB / 1.327 GB, free: 1.172 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001627/0.395, allocations: 1.112 MB / 1.328 GB, free: 48 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.611e-05/0.395, allocations: 0 / 1.328 GB, free: 48 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.473e-05/0.3951, allocations: 7.938 kB / 1.328 GB, free: 40 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.221e-05/0.3951, allocations: 7.875 kB / 1.328 GB, free: 32 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.3955, allocations: 55.92 kB / 1.328 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.3956, allocations: 71.67 kB / 1.328 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3958, allocations: 20.16 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.3958, allocations: 31.92 kB / 1.328 GB, free: 15.85 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.609e-05/0.3959, allocations: 27.86 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.3959, allocations: 8 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.396, allocations: 23.98 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.47e-05/0.396, allocations: 15.97 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.563e-05/0.3961, allocations: 31.8 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.3963, allocations: 87.84 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3963, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3963, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.3963, allocations: 0 / 1.328 GB, free: 15.66 MB / 1.029 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.0005516/0.3969, allocations: 307.5 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3969, allocations: 8.031 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.3969, allocations: 38.75 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.397, allocations: 4.891 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.3971, allocations: 122.4 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.3971, allocations: 4.359 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.3971, allocations: 12.36 kB / 1.329 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.3973, allocations: 69.92 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.3973, allocations: 4 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.3974, allocations: 0 / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.3974, allocations: 4 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3975, allocations: 43.95 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006523/0.3982, allocations: 303.7 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.3984, allocations: 50.56 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.782e-05/0.3985, allocations: 28.95 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.3985, allocations: 0 / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.3987, allocations: 79.41 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.3987, allocations: 4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004192/0.3991, allocations: 129.6 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.375e-05/0.3992, allocations: 51.41 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3993, allocations: 121.8 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.3994, allocations: 29.7 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.3994, allocations: 100.1 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.976e-05/0.3995, allocations: 11.91 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.478e-05/0.3995, allocations: 33.7 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3997, allocations: 322.8 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3998, allocations: 27.98 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3999, allocations: 73.92 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.4001, allocations: 113.9 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4001, allocations: 0 / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003205/0.4005, allocations: 133.4 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.4005, allocations: 4 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.4005, allocations: 4 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.4005, allocations: 4.219 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.4006, allocations: 19.98 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.4006, allocations: 8 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.202e-05/0.4007, allocations: 11.92 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.4007, allocations: 4 kB / 1.33 GB, free: 13.18 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.0001104/0.4008, allocations: 126.9 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.4009, allocations: 3.953 kB / 1.33 GB, free: 13.05 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.4009, allocations: 20.3 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4009, allocations: 4 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4009, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.4009, allocations: 0 / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005044/0.4014, allocations: 345.5 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4014, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.995e-05/0.4015, allocations: 15.92 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.4015, allocations: 4 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.4015, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4015, allocations: 7.938 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.4015, allocations: 0 / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.4018, allocations: 199.5 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.4018, allocations: 11.83 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.4018, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.4019, allocations: 11.92 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.436e-05/0.402, allocations: 15.98 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.402, allocations: 0 / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.598e-05/0.402, allocations: 95.27 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.402, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002521/0.4023, allocations: 12 kB / 1.331 GB, free: 12.25 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.0007374/0.403, allocations: 0.7359 MB / 1.332 GB, free: 11.49 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000289/0.4033, allocations: 79.81 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4033, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.4034, allocations: 32.97 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.4037, allocations: 17.48 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.4055, allocations: 1.521 MB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.4059, allocations: 0.6924 MB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.367e-05/0.4059, allocations: 4 kB / 1.334 GB, free: 9 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.197e-05/0.4059, allocations: 23.42 kB / 1.334 GB, free: 8.977 MB / 1.029 GB Notification: Performance of SimCode: time 4.4e-07/0.406, allocations: 0 / 1.334 GB, free: 8.977 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03658/0.4425, allocations: 2.24 MB / 1.336 GB, free: 6.875 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.71, allocations: 18.22 kB / 1.336 GB, free: 6.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.699333916185424]