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.001495/0.001495, allocations: 109 kB / 16.41 MB, free: 6.438 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.001747/0.001747, allocations: 191.2 kB / 17.34 MB, free: 5.742 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.446/1.446, allocations: 222.9 MB / 241 MB, free: 15.17 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.274/2.274, allocations: 390.3 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 63.91 kB / 0.9516 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8657/0.8673, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001841/0.8691, allocations: 0.7473 MB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.8703, allocations: 1.074 MB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.8704, allocations: 1.094 kB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.859e-05/0.8704, allocations: 4.594 kB / 1.09 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/0.8705, allocations: 14.09 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.8708, allocations: 56.61 kB / 1.09 GB, free: 4.223 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.8709, allocations: 69.11 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.8711, allocations: 22.27 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.8711, allocations: 27.25 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.411e-05/0.8712, allocations: 40.7 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.8712, allocations: 10.38 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.917e-05/0.8713, allocations: 19.27 kB / 1.091 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.973e-05/0.8713, allocations: 9.812 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.618e-05/0.8714, allocations: 39.3 kB / 1.091 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.8715, allocations: 74.92 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.8716, allocations: 1.094 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8716, allocations: 0 / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.8716, allocations: 4 kB / 1.091 GB, free: 4.07 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.0005044/0.8721, allocations: 377.8 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.8721, allocations: 9.844 kB / 1.091 GB, free: 3.699 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.8722, allocations: 8.438 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.989e-05/0.8723, allocations: 173.9 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.8723, allocations: 2.312 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.8723, allocations: 9.188 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.8725, allocations: 68.67 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.8725, allocations: 3.938 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.8725, allocations: 1.188 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.8726, allocations: 0.5625 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.8727, allocations: 43.5 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005751/0.8733, allocations: 332.2 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.8735, allocations: 54.69 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.8736, allocations: 33.2 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.8736, allocations: 1.688 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.8738, allocations: 78.08 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.8739, allocations: 7.938 kB / 1.092 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004301/0.8743, allocations: 127.2 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.8743, allocations: 57.75 kB / 1.092 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.8744, allocations: 123 kB / 1.092 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.8744, allocations: 27.23 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.8745, allocations: 92.33 kB / 1.092 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.8745, allocations: 20.7 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.8745, allocations: 33.47 kB / 1.092 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.8746, allocations: 327.2 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.8747, allocations: 27.11 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.8748, allocations: 74.64 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.8751, allocations: 106.3 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.8751, allocations: 4.656 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003165/0.8754, allocations: 134.8 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.8754, allocations: 5.625 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.8755, allocations: 3.172 kB / 1.093 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.8755, allocations: 5.844 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.8756, allocations: 17.69 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.8757, allocations: 6.453 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.79e-05/0.8758, allocations: 12.2 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.8758, allocations: 12.78 kB / 1.093 GB, free: 2.055 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 8.924e-05/0.8759, allocations: 124.4 kB / 1.093 GB, free: 1.93 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.92e-05/0.8759, allocations: 7 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.876, allocations: 6.938 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.876, allocations: 5.766 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.876, allocations: 0.7812 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.876, allocations: 3.938 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005074/0.8765, allocations: 379.6 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.8765, allocations: 1.781 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.787e-05/0.8766, allocations: 7.297 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.8766, allocations: 1.297 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.8766, allocations: 5.547 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.8766, allocations: 4.844 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.8766, allocations: 0 / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002965/0.8769, allocations: 200.3 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.06e-05/0.877, allocations: 82.58 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.877, allocations: 2.25 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.571e-05/0.8771, allocations: 21.81 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.8771, allocations: 5.359 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.8772, allocations: 2.5 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.063e-05/0.8772, allocations: 92.44 kB / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8772, allocations: 0 / 1.094 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002631/0.8775, allocations: 16.91 kB / 1.094 GB, free: 1.219 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.0001759/0.8777, allocations: 108.7 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003226/0.878, allocations: 78.66 kB / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.878, allocations: 0 / 1.094 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.8781, allocations: 40.03 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.8784, allocations: 8.578 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003583/0.8788, allocations: 194.2 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.8789, allocations: 0.6891 MB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.879, allocations: 15.48 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.879, allocations: 0.7188 kB / 1.095 GB, free: 216 kB / 0.8575 GB Notification: Performance of Templates: time 0.002963/0.882, allocations: 1.055 MB / 1.096 GB, free: 124 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