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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001818/0.001818, allocations: 105.4 kB / 15.99 MB, free: 5.891 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.001964/0.001964, allocations: 190.8 kB / 16.91 MB, free: 5.746 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.411/1.411, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.796/2.796, allocations: 482.4 MB / 0.755 GB, free: 7.125 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 71.17 kB / 0.924 GB, free: 284 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8044/0.8064, allocations: 162.2 MB / 1.082 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001835/0.8083, allocations: 0.8063 MB / 1.083 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001102/0.8094, allocations: 1.062 MB / 1.084 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.466e-05/0.8095, allocations: 5.25 kB / 1.084 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.477e-05/0.8095, allocations: 0.7969 kB / 1.084 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7e-05/0.8096, allocations: 10.33 kB / 1.084 GB, free: 324 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002834/0.8099, allocations: 47.33 kB / 1.084 GB, free: 296 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.98e-05/0.81, allocations: 73.38 kB / 1.084 GB, free: 260 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.8101, allocations: 23.09 kB / 1.084 GB, free: 244 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.079e-05/0.8102, allocations: 29.92 kB / 1.084 GB, free: 228 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/0.8103, allocations: 33.84 kB / 1.084 GB, free: 212 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.749e-05/0.8103, allocations: 9.812 kB / 1.084 GB, free: 208 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.85e-05/0.8104, allocations: 19.17 kB / 1.085 GB, free: 204 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.022e-05/0.8104, allocations: 10.67 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.106e-05/0.8104, allocations: 38.88 kB / 1.085 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001087/0.8106, allocations: 54.28 kB / 1.085 GB, free: 156 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.8106, allocations: 5.594 kB / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8106, allocations: 0 / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.8106, allocations: 0 / 1.085 GB, free: 152 kB / 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.0005716/0.8112, allocations: 373.6 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.8112, allocations: 9.25 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.8113, allocations: 12.66 kB / 1.085 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.8114, allocations: 174.3 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.8114, allocations: 2.906 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.8114, allocations: 3.938 kB / 1.085 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.8117, allocations: 76.48 kB / 1.085 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.8117, allocations: 3.938 kB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.8117, allocations: 1.812 kB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.8117, allocations: 1.094 kB / 1.085 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.8119, allocations: 42.81 kB / 1.085 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.8126, allocations: 328.9 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.8128, allocations: 58.48 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.8129, allocations: 33 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.8129, allocations: 0.875 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.8131, allocations: 87.08 kB / 1.086 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.8132, allocations: 0 / 1.086 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004354/0.8136, allocations: 127.7 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.8136, allocations: 52.5 kB / 1.086 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.8138, allocations: 132.4 kB / 1.086 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.8138, allocations: 30.86 kB / 1.086 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.8139, allocations: 88.88 kB / 1.086 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.8139, allocations: 15.23 kB / 1.086 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.814, allocations: 34.42 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8141, allocations: 319.5 kB / 1.087 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.8142, allocations: 29.98 kB / 1.087 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.8144, allocations: 78.95 kB / 1.087 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.8146, allocations: 106.4 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.8146, allocations: 0.8125 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003382/0.815, allocations: 135.5 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.815, allocations: 5.781 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.815, allocations: 2 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.815, allocations: 6.844 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.8152, allocations: 19.91 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.8152, allocations: 3.828 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.716e-05/0.8153, allocations: 12 kB / 1.087 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.8153, allocations: 4.453 kB / 1.087 GB, free: 14.14 MB / 0.8419 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 0.0001096/0.8154, allocations: 132 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.8154, allocations: 6.312 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.8155, allocations: 11.31 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.8155, allocations: 0.9062 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.8155, allocations: 4 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.8155, allocations: 1.75 kB / 1.087 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005072/0.816, allocations: 383.8 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.816, allocations: 1.219 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.03e-05/0.8161, allocations: 12.28 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.8161, allocations: 1.375 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.8161, allocations: 0 / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.8161, allocations: 5.844 kB / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.8161, allocations: 0 / 1.087 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.8164, allocations: 196.5 kB / 1.088 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.8165, allocations: 83.2 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.8165, allocations: 5.75 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.599e-05/0.8166, allocations: 9.938 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.8167, allocations: 12.98 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.8167, allocations: 2.188 kB / 1.088 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.853e-05/0.8167, allocations: 92.38 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.8167, allocations: 1.094 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002577/0.817, allocations: 20.66 kB / 1.088 GB, free: 13.29 MB / 0.8419 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.0001504/0.8172, allocations: 109.7 kB / 1.088 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002836/0.8175, allocations: 79.95 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.8175, allocations: 0 / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.8176, allocations: 41.58 kB / 1.088 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.8179, allocations: 10.64 kB / 1.088 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.8183, allocations: 210 kB / 1.088 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.8186, allocations: 0.6931 MB / 1.089 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.321e-05/0.8186, allocations: 13.14 kB / 1.089 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.8186, allocations: 0 / 1.089 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of Templates: time 0.002763/0.8214, allocations: 1.04 MB / 1.09 GB, free: 12.18 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y