Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_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_9_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.0009327/0.0009327, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006277/0.006277, allocations: 169 kB / 16.26 MB, free: 6.652 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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.336/2.336, allocations: 390.9 MB / 0.6664 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003697, allocations: 12 kB / 0.8161 GB, free: 13.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8471/0.8475, allocations: 142.4 MB / 0.9552 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.0009096/0.8484, allocations: 483.9 kB / 0.9557 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001143/0.8496, allocations: 1.057 MB / 0.9567 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.185e-05/0.8496, allocations: 1.219 kB / 0.9567 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.938e-05/0.8496, allocations: 7.922 kB / 0.9567 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.111e-05/0.8497, allocations: 9.359 kB / 0.9567 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.85, allocations: 48.36 kB / 0.9568 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.723e-05/0.8501, allocations: 68.91 kB / 0.9568 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.8502, allocations: 19.91 kB / 0.9568 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.867e-05/0.8503, allocations: 17.73 kB / 0.9569 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.433e-05/0.8503, allocations: 37.42 kB / 0.9569 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.8504, allocations: 5.375 kB / 0.9569 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.978e-05/0.8504, allocations: 17.36 kB / 0.9569 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.8505, allocations: 9.953 kB / 0.9569 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.98e-05/0.8505, allocations: 49.39 kB / 0.957 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.8506, allocations: 73.33 kB / 0.957 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8506, allocations: 1 kB / 0.957 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.806e-06/0.8506, allocations: 0 / 0.957 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.8506, allocations: 0 / 0.957 GB, free: 6.121 MB / 0.7169 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.0004444/0.8511, allocations: 371 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.8511, allocations: 10.03 kB / 0.9574 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.8512, allocations: 39.86 kB / 0.9574 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.8512, allocations: 7.969 kB / 0.9574 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.367e-05/0.8513, allocations: 176.3 kB / 0.9576 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.8513, allocations: 2.906 kB / 0.9576 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.8513, allocations: 12.19 kB / 0.9576 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001914/0.8515, allocations: 78.09 kB / 0.9577 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.8516, allocations: 0 / 0.9577 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.8516, allocations: 1.406 kB / 0.9577 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.8516, allocations: 1.094 kB / 0.9577 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.8518, allocations: 57.48 kB / 0.9578 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005444/0.8523, allocations: 332.7 kB / 0.9581 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.8525, allocations: 56.88 kB / 0.9581 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.859e-05/0.8526, allocations: 39.77 kB / 0.9582 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.8526, allocations: 5.375 kB / 0.9582 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.8528, allocations: 95.27 kB / 0.9583 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.8528, allocations: 0 / 0.9583 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000397/0.8532, allocations: 146.3 kB / 0.9584 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.8533, allocations: 53.91 kB / 0.9585 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.283e-05/0.8534, allocations: 123.9 kB / 0.9586 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.8534, allocations: 27.11 kB / 0.9586 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.702e-05/0.8534, allocations: 95.47 kB / 0.9587 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.8535, allocations: 9.875 kB / 0.9587 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.8535, allocations: 30.55 kB / 0.9587 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.8535, allocations: 320.1 kB / 0.959 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.8537, allocations: 33.47 kB / 0.9591 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.8538, allocations: 82.92 kB / 0.9591 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.854, allocations: 116.6 kB / 0.9593 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.854, allocations: 1.062 kB / 0.9593 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003011/0.8543, allocations: 146.8 kB / 0.9594 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.8543, allocations: 7.156 kB / 0.9594 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.8544, allocations: 2.312 kB / 0.9594 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.8544, allocations: 2.062 kB / 0.9594 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.8545, allocations: 26.44 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.892e-06/0.8545, allocations: 2.25 kB / 0.9594 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.124e-05/0.8546, allocations: 16.44 kB / 0.9595 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.8546, allocations: 8.734 kB / 0.9595 GB, free: 3.879 MB / 0.7169 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 6.597e-05/0.8547, allocations: 126.6 kB / 0.9596 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.232e-05/0.8547, allocations: 6.719 kB / 0.9596 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.39e-05/0.8547, allocations: 9.875 kB / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.8547, allocations: 5.719 kB / 0.9596 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.8548, allocations: 7.938 kB / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.8548, allocations: 1.281 kB / 0.9596 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003787/0.8551, allocations: 386.6 kB / 0.96 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.8552, allocations: 4 kB / 0.96 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-05/0.8552, allocations: 12.58 kB / 0.96 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.8552, allocations: 0 / 0.96 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.8552, allocations: 1.438 kB / 0.96 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.8552, allocations: 3.938 kB / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8552, allocations: 0 / 0.96 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002522/0.8555, allocations: 214.8 kB / 0.9602 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.354e-05/0.8555, allocations: 78.55 kB / 0.9603 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.8556, allocations: 5.188 kB / 0.9603 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.156e-05/0.8556, allocations: 14.7 kB / 0.9603 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.8557, allocations: 7.141 kB / 0.9603 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.8557, allocations: 9.484 kB / 0.9603 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.291e-05/0.8557, allocations: 88.16 kB / 0.9604 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8557, allocations: 0 / 0.9604 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002422/0.856, allocations: 22.05 kB / 0.9604 GB, free: 2.973 MB / 0.7169 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.0004593/0.8565, allocations: 0.746 MB / 0.9612 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000257/0.8567, allocations: 89.52 kB / 0.9612 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.8567, allocations: 1.375 kB / 0.9612 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.8568, allocations: 36.72 kB / 0.9613 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.8571, allocations: 21.36 kB / 0.9613 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.8585, allocations: 1.564 MB / 0.9628 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.8587, allocations: 0.6936 MB / 0.9635 GB, free: 52 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.622e-05/0.8587, allocations: 7.938 kB / 0.9635 GB, free: 48 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.8588, allocations: 23.8 kB / 0.9635 GB, free: 28 kB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.8588, allocations: 0 / 0.9635 GB, free: 28 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01239/0.8712, allocations: 1.823 MB / 0.9653 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000242/0.8714, allocations: 243 kB / 0.9655 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.709, allocations: 1.719 kB / 0.9655 GB, free: 14.98 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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