Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001206/0.001206, 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.001162/0.001162, allocations: 195.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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.689/2.689, allocations: 469.8 MB / 0.7424 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 68.83 kB / 0.9087 GB, free: 34.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2835, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001955/0.2855, allocations: 0.7554 MB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2868, allocations: 1.071 MB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.422e-05/0.2868, allocations: 4 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.612e-05/0.2869, allocations: 7.875 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.813e-05/0.2869, allocations: 11.86 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.2872, allocations: 51.89 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.802e-05/0.2873, allocations: 75.77 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.2874, allocations: 24.11 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.764e-05/0.2875, allocations: 23.92 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.178e-05/0.2876, allocations: 39.83 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.601e-05/0.2876, allocations: 4 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.47e-05/0.2877, allocations: 19.98 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.2877, allocations: 11.98 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.2878, allocations: 35.8 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.2879, allocations: 71.81 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.2879, allocations: 4 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2879, allocations: 0 / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.117e-06/0.2879, allocations: 0 / 1.066 GB, free: 11.99 MB / 0.8262 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.0005379/0.2885, allocations: 379.5 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2885, allocations: 15.97 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.477e-05/0.2885, allocations: 30.75 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.2886, allocations: 8.844 kB / 1.067 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.2887, allocations: 188.1 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.484e-06/0.2887, allocations: 4.375 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.2888, allocations: 4.375 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.289, allocations: 69.92 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.289, allocations: 0 / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.289, allocations: 8 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.289, allocations: 0 / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.2892, allocations: 47.89 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.2898, allocations: 316.8 kB / 1.067 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001509/0.2899, allocations: 58.58 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.29, allocations: 28.97 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.2901, allocations: 4 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.2903, allocations: 75.38 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.2903, allocations: 0 / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004016/0.2907, allocations: 133.5 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.2907, allocations: 59.34 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.2908, allocations: 129.7 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.2909, allocations: 29.7 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.272e-05/0.2909, allocations: 88.14 kB / 1.068 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.358e-05/0.291, allocations: 23.73 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.953e-05/0.291, allocations: 21.72 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.2911, allocations: 322.8 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2913, allocations: 35.97 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.2914, allocations: 73.92 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.2916, allocations: 113.8 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2917, allocations: 0 / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003007/0.292, allocations: 133.4 kB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.292, allocations: 5.406 kB / 1.069 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.292, allocations: 4 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.292, allocations: 0 / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2921, allocations: 19.98 kB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2921, allocations: 7.938 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.719e-05/0.2922, allocations: 11.98 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.2922, allocations: 8.219 kB / 1.069 GB, free: 9.309 MB / 0.8262 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.999e-05/0.2923, allocations: 117.8 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.713e-05/0.2924, allocations: 11.89 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.39e-05/0.2924, allocations: 8.375 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2924, allocations: 0 / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2924, allocations: 0 / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.283e-05/0.2924, allocations: 7.984 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004594/0.2929, allocations: 386.5 kB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2929, allocations: 0 / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.513e-05/0.293, allocations: 11.98 kB / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.293, allocations: 0 / 1.069 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.293, allocations: 4 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.293, allocations: 4.016 kB / 1.069 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.293, allocations: 3.984 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.2933, allocations: 203.4 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.709e-05/0.2933, allocations: 81.02 kB / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.2934, allocations: 0 / 1.069 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.2934, allocations: 11.92 kB / 1.069 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2935, allocations: 8 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2935, allocations: 4 kB / 1.069 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.552e-05/0.2936, allocations: 95.2 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2936, allocations: 4 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002313/0.2938, allocations: 12 kB / 1.07 GB, free: 8.254 MB / 0.8262 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.0006384/0.2944, allocations: 0.7441 MB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002727/0.2947, allocations: 83.88 kB / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2947, allocations: 0 / 1.07 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.2948, allocations: 39.91 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/0.2951, allocations: 11.94 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.2968, allocations: 1.51 MB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.2971, allocations: 0.7001 MB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3e-05/0.2972, allocations: 4 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.528e-05/0.2972, allocations: 23.42 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2972, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8489/1.146, allocations: 2.09 MB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/13.26, allocations: 4.641 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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