Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 191.6 kB / 16.14 MB, free: 6.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.365/2.365, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6568/0.6581, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002094/0.6603, allocations: 0.8245 MB / 1.018 GB, free: 1.934 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.6616, allocations: 1.066 MB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.85e-05/0.6617, allocations: 0 / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.6617, allocations: 3.938 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.281e-05/0.6618, allocations: 15.92 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.6621, allocations: 39.91 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.619e-05/0.6622, allocations: 71.77 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.6623, allocations: 24.16 kB / 1.019 GB, free: 0.6953 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.641e-05/0.6624, allocations: 23.92 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.971e-05/0.6625, allocations: 35.78 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.6625, allocations: 4 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.6626, allocations: 19.97 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.6626, allocations: 11.98 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.6626, allocations: 27.81 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.6628, allocations: 71.8 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.6628, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.274e-06/0.6628, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.6628, allocations: 7.938 kB / 1.019 GB, free: 0.4961 MB / 0.7637 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.0005088/0.6633, allocations: 381.5 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.6634, allocations: 8.031 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.713e-05/0.6634, allocations: 38.73 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.469e-05/0.6634, allocations: 8.844 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.6636, allocations: 168.3 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.6636, allocations: 8.312 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.494e-05/0.6636, allocations: 8.375 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.6638, allocations: 73.97 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.6638, allocations: 0 / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.6638, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.6639, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000167/0.664, allocations: 39.95 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005982/0.6646, allocations: 332.5 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.6648, allocations: 54.55 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.585e-05/0.6649, allocations: 32.95 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.6649, allocations: 3.938 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002053/0.6651, allocations: 83.41 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.6652, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003876/0.6655, allocations: 129.5 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.6656, allocations: 55.41 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.362e-05/0.6657, allocations: 117.8 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.6657, allocations: 33.7 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.396e-05/0.6658, allocations: 100 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.6658, allocations: 11.81 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.6658, allocations: 29.7 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.6659, allocations: 322.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.666, allocations: 31.92 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.6662, allocations: 77.92 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.6664, allocations: 109.9 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.6664, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002948/0.6667, allocations: 129.6 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.6667, allocations: 11.98 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.6667, allocations: 4 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.6668, allocations: 0 / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.6669, allocations: 15.98 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.6669, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.681e-05/0.667, allocations: 15.92 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.545e-05/0.667, allocations: 7.984 kB / 1.021 GB, free: 13.82 MB / 0.7794 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.725e-05/0.6671, allocations: 128.1 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.6671, allocations: 7.906 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.6672, allocations: 12.38 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.6672, allocations: 0 / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.6672, allocations: 0 / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.6672, allocations: 3.984 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004152/0.6676, allocations: 370.4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6676, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.285e-05/0.6677, allocations: 11.98 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.6677, allocations: 4 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.6677, allocations: 4 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.6677, allocations: 3.938 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.6677, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002625/0.668, allocations: 199.3 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.668, allocations: 93.02 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.6681, allocations: 0 / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.201e-05/0.6681, allocations: 11.92 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.277e-05/0.6682, allocations: 7.984 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.6682, allocations: 4 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.032e-05/0.6683, allocations: 103.1 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6683, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002442/0.6685, allocations: 16 kB / 1.022 GB, free: 12.75 MB / 0.7794 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.0005449/0.6691, allocations: 0.7446 MB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000253/0.6693, allocations: 84.19 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.6693, allocations: 4 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.6694, allocations: 27.98 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.6697, allocations: 15.92 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.6713, allocations: 1.527 MB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002035/0.6715, allocations: 0.6848 MB / 1.025 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.633e-05/0.6715, allocations: 11.98 kB / 1.025 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.577e-05/0.6716, allocations: 19.44 kB / 1.025 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.6716, allocations: 0 / 1.025 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01077/0.6823, allocations: 1.885 MB / 1.027 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.6826, allocations: 253.3 kB / 1.027 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.523/2.206, allocations: 0 / 1.027 GB, free: 7.512 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,samTri.period,samTri.shift,samTri.y,samTri1.period,samTri1.shift,samTri1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.trigger,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start