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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001505/0.001505, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.414/1.414, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.657/2.657, allocations: 437.1 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 63.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7279/0.7293, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.002204/0.7315, allocations: 0.7572 MB / 1.018 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001432/0.733, allocations: 1.07 MB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.323e-05/0.7331, allocations: 0 / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.35e-05/0.7331, allocations: 11.88 kB / 1.019 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.53e-05/0.7332, allocations: 15.84 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.7335, allocations: 43.91 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.7336, allocations: 75.77 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.7337, allocations: 20.16 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.94e-05/0.7338, allocations: 27.86 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.037e-05/0.7339, allocations: 43.89 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.7339, allocations: 4 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.007e-05/0.734, allocations: 19.98 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.3e-05/0.734, allocations: 15.94 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.7341, allocations: 27.86 kB / 1.02 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001329/0.7342, allocations: 71.75 kB / 1.02 GB, free: 288 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.7342, allocations: 3.984 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7342, allocations: 0 / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.7343, allocations: 0 / 1.02 GB, free: 284 kB / 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.0005312/0.7348, allocations: 389.5 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.7348, allocations: 8.031 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.609e-05/0.7349, allocations: 34.75 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.7349, allocations: 4.938 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.7351, allocations: 188.1 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.7351, allocations: 8.312 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.7351, allocations: 4.375 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.7353, allocations: 73.95 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.7353, allocations: 0 / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.7354, allocations: 4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.7354, allocations: 4 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.7355, allocations: 47.89 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.7362, allocations: 324.6 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.7364, allocations: 58.58 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.996e-05/0.7365, allocations: 32.95 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.7365, allocations: 0 / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.7367, allocations: 75.38 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.704e-06/0.7367, allocations: 4 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004148/0.7371, allocations: 125.5 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.7372, allocations: 59.34 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.7373, allocations: 125.8 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.7373, allocations: 29.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.36e-05/0.7374, allocations: 96.03 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.7374, allocations: 11.81 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.129e-05/0.7375, allocations: 33.7 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.7376, allocations: 318.8 kB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.7377, allocations: 27.97 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.7378, allocations: 77.92 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002375/0.7381, allocations: 117.8 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.7381, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003197/0.7384, allocations: 125.5 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.7384, allocations: 5.562 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.7385, allocations: 4.219 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.7385, allocations: 4 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.7386, allocations: 19.97 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.7386, allocations: 7.938 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.772e-05/0.7387, allocations: 15.84 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.7387, allocations: 7.984 kB / 1.022 GB, free: 13.58 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.947e-05/0.7388, allocations: 121.8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.7388, allocations: 7.906 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.866e-05/0.7389, allocations: 12.38 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.7389, allocations: 7.938 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7389, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.7389, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004625/0.7394, allocations: 374.4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.7394, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.525e-05/0.7394, allocations: 7.984 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.7395, allocations: 8 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.7395, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.7395, allocations: 3.938 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7395, allocations: 0 / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.7398, allocations: 203.7 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.611e-05/0.7398, allocations: 85.02 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.7399, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.405e-05/0.74, allocations: 15.92 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.74, allocations: 4 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.74, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.536e-05/0.7401, allocations: 99.27 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7401, allocations: 0 / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002565/0.7403, allocations: 12 kB / 1.023 GB, free: 12.54 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.0006454/0.741, allocations: 0.7553 MB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.7413, allocations: 75.89 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7413, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.7414, allocations: 44.34 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.7417, allocations: 16.47 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.7436, allocations: 1.506 MB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.7439, allocations: 0.6923 MB / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.045e-05/0.7439, allocations: 7.984 kB / 1.026 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.744, allocations: 19.44 kB / 1.026 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.744, allocations: 7.938 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.7629, allocations: 2.084 MB / 1.028 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.875/8.638, allocations: 12.12 kB / 1.028 GB, free: 7.316 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