Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",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.001433/0.001433, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001775/0.001775, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.473/1.473, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.84/2.84, allocations: 461.9 MB / 0.7344 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 66.14 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2725, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001734/0.2743, allocations: 0.8103 MB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.2754, allocations: 1.084 MB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.2755, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.2755, allocations: 0 / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.318e-05/0.2756, allocations: 11.88 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.2759, allocations: 43.95 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.105e-05/0.276, allocations: 71.78 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.422e-05/0.2761, allocations: 24.17 kB / 1.054 GB, free: 6.598 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.374e-05/0.2761, allocations: 31.86 kB / 1.054 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.959e-05/0.2762, allocations: 31.91 kB / 1.055 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.2762, allocations: 4 kB / 1.055 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.106e-05/0.2763, allocations: 23.92 kB / 1.055 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.752e-05/0.2763, allocations: 15.97 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.995e-05/0.2763, allocations: 31.86 kB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.2765, allocations: 67.75 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2765, allocations: 8 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2765, allocations: 0 / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2765, allocations: 0 / 1.055 GB, free: 6.387 MB / 0.8106 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.0004474/0.2769, allocations: 383.5 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.277, allocations: 8.031 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.125e-05/0.277, allocations: 34.75 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.266e-05/0.2771, allocations: 16.78 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.505e-05/0.2772, allocations: 180.2 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2772, allocations: 384 / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.2772, allocations: 8.375 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.2774, allocations: 69.98 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.2774, allocations: 0 / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.2774, allocations: 3.984 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.2774, allocations: 4 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.2776, allocations: 43.91 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005383/0.2781, allocations: 324.7 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001399/0.2783, allocations: 58.58 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.489e-05/0.2784, allocations: 28.97 kB / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.2784, allocations: 0 / 1.056 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/0.2786, allocations: 79.38 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.2786, allocations: 0 / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003605/0.2789, allocations: 133.5 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/0.279, allocations: 59.34 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.679e-05/0.2791, allocations: 125.8 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.2791, allocations: 29.7 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.2791, allocations: 92.05 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.2792, allocations: 23.72 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.581e-05/0.2792, allocations: 33.7 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.2793, allocations: 314.8 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.2794, allocations: 31.97 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.2795, allocations: 77.92 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.2797, allocations: 113.8 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2797, allocations: 0 / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002728/0.28, allocations: 129.5 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.28, allocations: 4 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.28, allocations: 4 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.28, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.2802, allocations: 19.98 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.2802, allocations: 11.92 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/0.2803, allocations: 4 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.2803, allocations: 4 kB / 1.057 GB, free: 3.707 MB / 0.8106 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 7.696e-05/0.2804, allocations: 132.8 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.2804, allocations: 3.906 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.2804, allocations: 16.31 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2804, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2804, allocations: 4 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2804, allocations: 0 / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.2808, allocations: 382.3 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2808, allocations: 0 / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.047e-05/0.2809, allocations: 11.98 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2809, allocations: 4 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2809, allocations: 0 / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.2809, allocations: 3.938 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.2809, allocations: 0 / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.2812, allocations: 203.3 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.022e-05/0.2812, allocations: 85.02 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.2812, allocations: 0 / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.774e-05/0.2813, allocations: 11.92 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.2813, allocations: 8 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.2813, allocations: 0 / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.532e-05/0.2814, allocations: 95.27 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.262e-06/0.2814, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002321/0.2816, allocations: 15.94 kB / 1.058 GB, free: 2.652 MB / 0.8106 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.0004791/0.2821, allocations: 0.7484 MB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002333/0.2824, allocations: 75.95 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2824, allocations: 0 / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.985e-05/0.2825, allocations: 43.91 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.2827, allocations: 11.94 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.2841, allocations: 1.521 MB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.2843, allocations: 0.6962 MB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.211e-05/0.2844, allocations: 4 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/0.2844, allocations: 27.36 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2844, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.125/4.41, allocations: 1.956 MB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/4.41, allocations: 254.4 kB / 1.063 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.551/6.961, allocations: 0 / 1.063 GB, free: 13.34 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.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