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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: 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_9_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_9_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.001182/0.001182, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001183/0.001183, allocations: 183 kB / 17.34 MB, free: 5.766 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.343/1.343, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 59.91 kB / 0.9516 GB, free: 7.625 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7744/0.7758, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001927/0.7778, allocations: 0.7613 MB / 1.089 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.7791, allocations: 1.063 MB / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.491e-05/0.7791, allocations: 0 / 1.09 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.136e-05/0.7792, allocations: 13.73 kB / 1.09 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.363e-05/0.7793, allocations: 14.33 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.7796, allocations: 53.69 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.7797, allocations: 74.36 kB / 1.091 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.7799, allocations: 17.89 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.7799, allocations: 27.42 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.78, allocations: 37.36 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.7801, allocations: 5.094 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.404e-05/0.7801, allocations: 24.25 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.67e-05/0.7802, allocations: 9.656 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.728e-05/0.7802, allocations: 38.56 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.7805, allocations: 79.41 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.7805, allocations: 1.094 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.554e-06/0.7805, allocations: 0 / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.7805, allocations: 0.7969 kB / 1.091 GB, free: 4.039 MB / 0.8575 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.0006498/0.7812, allocations: 377 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.7812, allocations: 9.469 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.7813, allocations: 12.69 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.7814, allocations: 169.8 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.7814, allocations: 2.688 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.7815, allocations: 8.828 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.7817, allocations: 64.02 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.7817, allocations: 13.16 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.7817, allocations: 0.7969 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.7818, allocations: 4.938 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.782, allocations: 51.08 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007013/0.7827, allocations: 323.8 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.7829, allocations: 54.77 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.783, allocations: 37.41 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.783, allocations: 1.547 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.7833, allocations: 73.83 kB / 1.092 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.7833, allocations: 3.938 kB / 1.092 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004641/0.7837, allocations: 140.2 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.7838, allocations: 52.92 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.7839, allocations: 119.2 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.7839, allocations: 27.7 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.306e-05/0.784, allocations: 96.3 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.784, allocations: 11.73 kB / 1.092 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.7841, allocations: 34.56 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.213e-05/0.7842, allocations: 322.9 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.7843, allocations: 31.2 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.7844, allocations: 69.8 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000266/0.7847, allocations: 110.9 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.7847, allocations: 0.7812 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003694/0.7851, allocations: 134.5 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.7851, allocations: 6.344 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.7851, allocations: 1.406 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.7852, allocations: 2.469 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.7853, allocations: 21.3 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7853, allocations: 3.203 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.599e-05/0.7854, allocations: 16.59 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.7854, allocations: 9.016 kB / 1.093 GB, free: 2.027 MB / 0.8575 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.556e-05/0.7855, allocations: 122.2 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.7855, allocations: 7.297 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.7856, allocations: 10.7 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.7856, allocations: 1.531 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7856, allocations: 0.9062 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.7856, allocations: 4.5 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004639/0.7861, allocations: 380.1 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7861, allocations: 0 / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.354e-05/0.7861, allocations: 8.156 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7862, allocations: 1.578 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.7862, allocations: 1.438 kB / 1.094 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.7862, allocations: 8.625 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.7862, allocations: 3.938 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.7865, allocations: 200.1 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.705e-05/0.7865, allocations: 84.25 kB / 1.094 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.7865, allocations: 9.156 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.282e-05/0.7866, allocations: 10.81 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.211e-05/0.7867, allocations: 4.484 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.7867, allocations: 2.594 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.282e-05/0.7867, allocations: 95.97 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7867, allocations: 0 / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000261/0.787, allocations: 17.05 kB / 1.094 GB, free: 1.191 MB / 0.8575 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.0001743/0.7872, allocations: 108 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002936/0.7875, allocations: 79.78 kB / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.7875, allocations: 448 / 1.094 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.7876, allocations: 39.36 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.7879, allocations: 14.25 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003622/0.7883, allocations: 188.9 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.7884, allocations: 0.6911 MB / 1.095 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.675e-05/0.7884, allocations: 17.66 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.7885, allocations: 4 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of Templates: time 0.003182/0.7916, allocations: 1.046 MB / 1.096 GB, free: 104 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y