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.001331/0.001331, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001552/0.001552, allocations: 214.9 kB / 22.25 MB, free: 4.855 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.801 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.28/3.28, allocations: 0.4892 GB / 0.7943 GB, free: 35.52 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.002112/0.002112, allocations: 69.08 kB / 1.153 GB, free: 25.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3598, allocations: 176.1 MB / 1.325 GB, free: 2.328 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002578/0.3624, allocations: 0.7323 MB / 1.326 GB, free: 1.602 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002247/0.3646, allocations: 1.085 MB / 1.327 GB, free: 0.5039 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.792e-05/0.3647, allocations: 4 kB / 1.327 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.771e-05/0.3648, allocations: 7.875 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.3649, allocations: 19.84 kB / 1.327 GB, free: 484 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004792/0.3654, allocations: 47.89 kB / 1.327 GB, free: 436 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.3656, allocations: 75.72 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.3658, allocations: 16.17 kB / 1.327 GB, free: 340 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3659, allocations: 27.92 kB / 1.327 GB, free: 312 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.366, allocations: 31.83 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.366, allocations: 8 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.985e-05/0.3661, allocations: 23.98 kB / 1.327 GB, free: 248 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.746e-05/0.3661, allocations: 11.94 kB / 1.327 GB, free: 236 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.143e-05/0.3662, allocations: 27.91 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.3664, allocations: 79.91 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.3664, allocations: 7.938 kB / 1.327 GB, free: 120 kB / 1.014 GB Notification: Performance of FrontEnd: time 4.829e-06/0.3665, allocations: 3.984 kB / 1.327 GB, free: 116 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.694e-05/0.3665, allocations: 0 / 1.327 GB, free: 116 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.0008018/0.3673, allocations: 298.1 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/0.3673, allocations: 8.031 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.483e-05/0.3674, allocations: 42.69 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.76e-05/0.3674, allocations: 12.89 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.3676, allocations: 114.5 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3676, allocations: 384 / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.3677, allocations: 8.375 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.3679, allocations: 73.91 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.3679, allocations: 0 / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.3679, allocations: 4 kB / 1.328 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3679, allocations: 3.938 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.3682, allocations: 39.97 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/0.3689, allocations: 287.8 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.3691, allocations: 54.58 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3692, allocations: 32.95 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.3692, allocations: 0 / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003324/0.3696, allocations: 79.36 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3696, allocations: 4 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004877/0.3701, allocations: 137.5 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.3701, allocations: 55.41 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.3703, allocations: 125.8 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.3703, allocations: 29.7 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.821e-05/0.3704, allocations: 88.09 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.3704, allocations: 15.91 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.3704, allocations: 29.7 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3706, allocations: 330.7 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3707, allocations: 31.97 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.3709, allocations: 69.98 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.3711, allocations: 109.9 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3711, allocations: 0 / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003322/0.3715, allocations: 133.5 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3715, allocations: 8 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.3715, allocations: 224 / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.3715, allocations: 8 kB / 1.329 GB, free: 13.69 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.3717, allocations: 19.92 kB / 1.329 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3717, allocations: 4 kB / 1.329 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.512e-05/0.3718, allocations: 11.92 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.3718, allocations: 4 kB / 1.329 GB, free: 13.65 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.0001266/0.3719, allocations: 124.9 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.414e-05/0.3719, allocations: 7.953 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.3719, allocations: 12.36 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.3719, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.372, allocations: 4 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.372, allocations: 0 / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005437/0.3725, allocations: 341.5 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3725, allocations: 3.938 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.214e-05/0.3726, allocations: 15.98 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3726, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.3726, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.3726, allocations: 3.938 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3726, allocations: 7.938 kB / 1.33 GB, free: 13.08 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000355/0.3729, allocations: 203.4 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.636e-05/0.373, allocations: 11.89 kB / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.373, allocations: 0 / 1.33 GB, free: 12.85 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.3731, allocations: 15.92 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.3731, allocations: 11.92 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.3731, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.163e-05/0.3732, allocations: 91.27 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3732, allocations: 4 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002745/0.3735, allocations: 20 kB / 1.33 GB, free: 12.71 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.0007166/0.3742, allocations: 0.7319 MB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002855/0.3745, allocations: 71.88 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3745, allocations: 4.438 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.3746, allocations: 35.92 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3749, allocations: 22.66 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.3768, allocations: 1.513 MB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.457e-05/0.3769, allocations: 79.27 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.156e-05/0.3769, allocations: 4 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.779e-05/0.377, allocations: 23.42 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of SimCode: time 4.31e-07/0.377, allocations: 0 / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03038/0.4074, allocations: 2.691 MB / 1.335 GB, free: 7.512 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.81, allocations: 10.2 kB / 1.335 GB, free: 7.508 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.712888645008206]