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.0007272/0.0007272, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.004874/0.004874, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.355/1.355, allocations: 223.3 MB / 240.3 MB, free: 5.246 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.573/2.573, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.00034, allocations: 8 kB / 0.873 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8102/0.8106, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.0009789/0.8116, allocations: 489.4 kB / 1.024 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.813, allocations: 1.062 MB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.813, allocations: 0 / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.8131, allocations: 3.984 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.87e-05/0.8132, allocations: 11.92 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.8134, allocations: 47.89 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.151e-05/0.8135, allocations: 63.84 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.8136, allocations: 16.17 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.252e-05/0.8137, allocations: 27.8 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.477e-05/0.8138, allocations: 27.89 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.8138, allocations: 4 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.387e-05/0.8139, allocations: 15.98 kB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.287e-05/0.8139, allocations: 15.92 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.023e-05/0.814, allocations: 53.56 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.8141, allocations: 75.73 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.8141, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8141, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.8142, allocations: 4 kB / 1.025 GB, free: 13.91 MB / 0.7794 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.0005153/0.8147, allocations: 365.6 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.8147, allocations: 8.031 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.611e-05/0.8148, allocations: 42.73 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.8148, allocations: 12.84 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.8149, allocations: 180.1 kB / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.484e-06/0.8149, allocations: 384 / 1.026 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.815, allocations: 4.375 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.8152, allocations: 77.97 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.8152, allocations: 0 / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.8152, allocations: 4 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.8152, allocations: 4 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.8154, allocations: 55.89 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005825/0.816, allocations: 332.6 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.8161, allocations: 62.5 kB / 1.026 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.8163, allocations: 41.03 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.8163, allocations: 7.938 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.8165, allocations: 79.38 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.8165, allocations: 4 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000411/0.8169, allocations: 141.6 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.817, allocations: 51.41 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.8171, allocations: 125.8 kB / 1.027 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.8171, allocations: 33.7 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.208e-05/0.8172, allocations: 92.06 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.8172, allocations: 15.81 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.8172, allocations: 21.7 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.8173, allocations: 318.8 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.8175, allocations: 39.97 kB / 1.027 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.8176, allocations: 73.98 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.8178, allocations: 121.9 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.8178, allocations: 0 / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003363/0.8182, allocations: 145.5 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.8182, allocations: 11.94 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.8182, allocations: 0 / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.8182, allocations: 4 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.8184, allocations: 23.97 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.902e-06/0.8184, allocations: 3.938 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.056e-05/0.8185, allocations: 15.84 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.8185, allocations: 4 kB / 1.027 GB, free: 11.16 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.808e-05/0.8186, allocations: 133.8 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-06/0.8186, allocations: 0 / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.597e-05/0.8186, allocations: 8.375 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.8186, allocations: 0 / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.8186, allocations: 0 / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.8186, allocations: 0 / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.8191, allocations: 394.3 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/0.8191, allocations: 4 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.533e-05/0.8192, allocations: 11.98 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.8192, allocations: 4 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.8192, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.8192, allocations: 7.938 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8192, allocations: 0 / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.8195, allocations: 219.4 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.8195, allocations: 77.11 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.8195, allocations: 8 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.969e-05/0.8196, allocations: 15.92 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.8197, allocations: 7.938 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.8197, allocations: 0 / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.5e-05/0.8197, allocations: 95.92 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.8197, allocations: 0 / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002399/0.82, allocations: 23.91 kB / 1.028 GB, free: 10.07 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.0005801/0.8206, allocations: 0.7519 MB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.8208, allocations: 83.89 kB / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.8208, allocations: 0 / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.821, allocations: 56.41 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.8212, allocations: 12.83 kB / 1.029 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.8228, allocations: 1.559 MB / 1.031 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.8231, allocations: 0.6887 MB / 1.031 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.8231, allocations: 4 kB / 1.031 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.525e-05/0.8232, allocations: 23.42 kB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of SimCode: time 3.2e-07/0.8232, allocations: 0 / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01161/0.8348, allocations: 1.817 MB / 1.033 GB, free: 5.125 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001863/0.835, allocations: 247 kB / 1.034 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/2.498, allocations: 6.688 kB / 1.034 GB, free: 4.859 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