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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 102.4 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.862/2.862, allocations: 497.2 MB / 0.7811 GB, free: 12.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 71.88 kB / 1.134 GB, free: 13.15 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.086, allocations: 173.9 MB / 1.304 GB, free: 32.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001877/1.088, allocations: 0.7542 MB / 1.305 GB, free: 31.62 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001151/1.089, allocations: 1.08 MB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.844e-05/1.089, allocations: 2.594 kB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/1.089, allocations: 7.219 kB / 1.306 GB, free: 30.83 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.296e-05/1.089, allocations: 14.38 kB / 1.306 GB, free: 30.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003832/1.09, allocations: 58.3 kB / 1.306 GB, free: 30.79 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/1.09, allocations: 68.58 kB / 1.306 GB, free: 30.75 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/1.09, allocations: 19.5 kB / 1.306 GB, free: 30.74 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.856e-05/1.09, allocations: 33.55 kB / 1.306 GB, free: 30.72 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.177e-05/1.09, allocations: 31.83 kB / 1.306 GB, free: 30.71 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/1.09, allocations: 5.281 kB / 1.306 GB, free: 30.71 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.43e-05/1.09, allocations: 21.95 kB / 1.306 GB, free: 30.7 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 2.377e-05/1.09, allocations: 15.34 kB / 1.306 GB, free: 30.69 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.217e-05/1.09, allocations: 36.14 kB / 1.306 GB, free: 30.67 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001771/1.09, allocations: 81.02 kB / 1.306 GB, free: 30.64 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/1.09, allocations: 0 / 1.306 GB, free: 30.64 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.755e-06/1.09, allocations: 0 / 1.306 GB, free: 30.64 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.233e-06/1.09, allocations: 0 / 1.306 GB, free: 30.64 MB / 1.061 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.0006412/1.091, allocations: 379.6 kB / 1.307 GB, free: 30.26 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.091, allocations: 8.375 kB / 1.307 GB, free: 30.26 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.272e-05/1.091, allocations: 36.7 kB / 1.307 GB, free: 30.22 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.385e-05/1.091, allocations: 7.547 kB / 1.307 GB, free: 30.21 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001192/1.091, allocations: 181.8 kB / 1.307 GB, free: 30 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/1.091, allocations: 4.375 kB / 1.307 GB, free: 30 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/1.091, allocations: 9.734 kB / 1.307 GB, free: 30 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/1.092, allocations: 66.03 kB / 1.307 GB, free: 29.96 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/1.092, allocations: 0 / 1.307 GB, free: 29.96 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/1.092, allocations: 6.938 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/1.092, allocations: 3.938 kB / 1.307 GB, free: 29.95 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/1.092, allocations: 47.06 kB / 1.307 GB, free: 29.94 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007247/1.093, allocations: 321.6 kB / 1.307 GB, free: 29.64 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/1.093, allocations: 49.55 kB / 1.307 GB, free: 29.61 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/1.093, allocations: 37.45 kB / 1.307 GB, free: 29.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/1.093, allocations: 4 kB / 1.307 GB, free: 29.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/1.093, allocations: 79.66 kB / 1.307 GB, free: 29.53 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 2.074e-06/1.093, allocations: 0 / 1.307 GB, free: 29.53 MB / 1.061 GB Notification: Performance of matching and sorting (n=7): time 0.0005519/1.094, allocations: 128 kB / 1.307 GB, free: 29.47 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/1.094, allocations: 51.41 kB / 1.308 GB, free: 29.41 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.419e-05/1.094, allocations: 127.1 kB / 1.308 GB, free: 29.3 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/1.094, allocations: 28.48 kB / 1.308 GB, free: 29.27 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 4.516e-05/1.094, allocations: 102 kB / 1.308 GB, free: 29.17 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/1.094, allocations: 14.83 kB / 1.308 GB, free: 29.16 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-05/1.094, allocations: 29.2 kB / 1.308 GB, free: 29.13 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.275e-05/1.094, allocations: 328.9 kB / 1.308 GB, free: 28.81 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/1.094, allocations: 28 kB / 1.308 GB, free: 28.8 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/1.094, allocations: 72.5 kB / 1.308 GB, free: 28.74 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002853/1.095, allocations: 109.9 kB / 1.308 GB, free: 28.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/1.095, allocations: 6.688 kB / 1.308 GB, free: 28.65 MB / 1.061 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004068/1.095, allocations: 132.7 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/1.095, allocations: 5.562 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/1.095, allocations: 2.906 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/1.095, allocations: 2.812 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/1.095, allocations: 18.17 kB / 1.308 GB, free: 28.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/1.095, allocations: 10.88 kB / 1.308 GB, free: 28.58 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/1.096, allocations: 13.05 kB / 1.308 GB, free: 28.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/1.096, allocations: 6.844 kB / 1.308 GB, free: 28.57 MB / 1.061 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 8.591e-05/1.096, allocations: 131.4 kB / 1.309 GB, free: 28.44 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/1.096, allocations: 6.922 kB / 1.309 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.635e-05/1.096, allocations: 11.28 kB / 1.309 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/1.096, allocations: 0 / 1.309 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/1.096, allocations: 3.234 kB / 1.309 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.096, allocations: 0 / 1.309 GB, free: 28.43 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005211/1.096, allocations: 376.7 kB / 1.309 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/1.096, allocations: 0 / 1.309 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.507e-05/1.096, allocations: 9.297 kB / 1.309 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/1.096, allocations: 0 / 1.309 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/1.096, allocations: 0 / 1.309 GB, free: 28.09 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/1.096, allocations: 6.938 kB / 1.309 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.096, allocations: 0 / 1.309 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/1.097, allocations: 210.1 kB / 1.309 GB, free: 27.92 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.58e-05/1.097, allocations: 77.11 kB / 1.309 GB, free: 27.83 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/1.097, allocations: 6.875 kB / 1.309 GB, free: 27.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/1.097, allocations: 10.12 kB / 1.309 GB, free: 27.82 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/1.097, allocations: 2.969 kB / 1.309 GB, free: 27.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/1.097, allocations: 6.234 kB / 1.309 GB, free: 27.82 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.88e-05/1.097, allocations: 91.97 kB / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/1.097, allocations: 0 / 1.309 GB, free: 27.74 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004547/1.097, allocations: 19.42 kB / 1.309 GB, free: 27.73 MB / 1.061 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.000593/1.098, allocations: 0.7465 MB / 1.31 GB, free: 27.05 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003564/1.098, allocations: 80.66 kB / 1.31 GB, free: 27.02 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/1.098, allocations: 0 / 1.31 GB, free: 27.02 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/1.099, allocations: 30.95 kB / 1.31 GB, free: 27.02 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000421/1.099, allocations: 14.86 kB / 1.31 GB, free: 27.01 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/1.101, allocations: 1.527 MB / 1.312 GB, free: 25.63 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/1.101, allocations: 0.6869 MB / 1.312 GB, free: 24.94 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.662e-05/1.101, allocations: 8.938 kB / 1.312 GB, free: 24.94 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.219e-05/1.101, allocations: 21.61 kB / 1.312 GB, free: 24.92 MB / 1.061 GB Notification: Performance of SimCode: time 4.91e-07/1.101, allocations: 4 kB / 1.312 GB, free: 24.92 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/1.132, allocations: 2.113 MB / 1.315 GB, free: 24.52 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/9.199, allocations: 7.922 kB / 1.315 GB, free: 24.51 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 15.56832416402176]