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.001477/0.001477, allocations: 102 kB / 16.27 MB, free: 5.859 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.001456/0.001456, allocations: 185.3 kB / 17.19 MB, free: 5.508 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.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.612/2.612, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 68.36 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6746/0.6765, allocations: 162.2 MB / 1.083 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001784/0.6783, allocations: 0.7462 MB / 1.084 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.6794, allocations: 1.065 MB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.279e-05/0.6794, allocations: 0.6875 kB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.921e-05/0.6794, allocations: 5.906 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.6795, allocations: 14.67 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.6798, allocations: 55.05 kB / 1.085 GB, free: 372 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.669e-05/0.6799, allocations: 73.23 kB / 1.085 GB, free: 336 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.612e-05/0.68, allocations: 22.42 kB / 1.085 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.677e-05/0.68, allocations: 27.03 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.794e-05/0.6801, allocations: 41.42 kB / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.6801, allocations: 4.531 kB / 1.085 GB, free: 284 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.832e-05/0.6802, allocations: 20.75 kB / 1.085 GB, free: 280 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.6802, allocations: 13.98 kB / 1.085 GB, free: 272 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.6803, allocations: 34.81 kB / 1.085 GB, free: 248 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.6804, allocations: 70.22 kB / 1.085 GB, free: 224 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.6804, allocations: 0.75 kB / 1.085 GB, free: 224 kB / 0.8262 GB Notification: Performance of FrontEnd: time 9.81e-07/0.6804, allocations: 3.938 kB / 1.085 GB, free: 220 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.6804, allocations: 1.156 kB / 1.085 GB, free: 220 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.0004899/0.6809, allocations: 381.6 kB / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.681, allocations: 8.812 kB / 1.085 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.681, allocations: 12.97 kB / 1.085 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.6812, allocations: 182.2 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.6812, allocations: 6.938 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.6812, allocations: 8.375 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.6814, allocations: 71.53 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.6814, allocations: 5 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.6814, allocations: 0 / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.6814, allocations: 2.547 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.6816, allocations: 42.52 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.6823, allocations: 327.9 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.6824, allocations: 51.94 kB / 1.086 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.6825, allocations: 34.34 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.6826, allocations: 5.438 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.6828, allocations: 82.42 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.6828, allocations: 0 / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004288/0.6832, allocations: 127.2 kB / 1.086 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.6833, allocations: 58.08 kB / 1.086 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.6834, allocations: 126.8 kB / 1.087 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.6834, allocations: 27.02 kB / 1.087 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.6835, allocations: 89.42 kB / 1.087 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.6835, allocations: 15.67 kB / 1.087 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.247e-05/0.6836, allocations: 29.41 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.6837, allocations: 323.3 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.6838, allocations: 35.53 kB / 1.087 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.684, allocations: 74.58 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.6842, allocations: 110.2 kB / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.6842, allocations: 0 / 1.087 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003221/0.6846, allocations: 140 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.6846, allocations: 5.406 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.6846, allocations: 1.703 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.6846, allocations: 2.562 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.6847, allocations: 17.34 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.6847, allocations: 2.969 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.329e-05/0.6848, allocations: 11.95 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.6849, allocations: 9.266 kB / 1.087 GB, free: 14.19 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.000101/0.685, allocations: 128.2 kB / 1.088 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.515e-05/0.685, allocations: 11.97 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.484e-05/0.685, allocations: 6.406 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.685, allocations: 0.75 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.685, allocations: 1.25 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.685, allocations: 0.5156 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000498/0.6855, allocations: 383.2 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.6855, allocations: 1.859 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.353e-05/0.6856, allocations: 8.359 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.6856, allocations: 0 / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.6856, allocations: 0.875 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.6856, allocations: 6.031 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6856, allocations: 0 / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.6859, allocations: 195.6 kB / 1.088 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.686, allocations: 84.03 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.686, allocations: 5.531 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.848e-05/0.6861, allocations: 17.98 kB / 1.088 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.6862, allocations: 8.953 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.6862, allocations: 1.906 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.926e-05/0.6862, allocations: 100.9 kB / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6862, allocations: 0 / 1.088 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002458/0.6865, allocations: 17.94 kB / 1.088 GB, free: 13.34 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.0001463/0.6866, allocations: 109.9 kB / 1.088 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002774/0.6869, allocations: 74.94 kB / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6869, allocations: 448 / 1.089 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.6871, allocations: 42.97 kB / 1.089 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.6873, allocations: 13.56 kB / 1.089 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003594/0.6877, allocations: 193.1 kB / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.688, allocations: 0.693 MB / 1.089 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.6881, allocations: 15.38 kB / 1.089 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.6881, allocations: 1.375 kB / 1.089 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of Templates: time 0.002518/0.6906, allocations: 1.031 MB / 1.09 GB, free: 12.26 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