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.008716/0.008716, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.001979/0.001979, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.527/1.527, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.476/2.476, allocations: 390.2 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001236, allocations: 67.91 kB / 0.9509 GB, free: 7.574 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9886/0.9899, allocations: 140.4 MB / 1.088 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002009/0.9919, allocations: 0.759 MB / 1.089 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.9934, allocations: 1.067 MB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.313e-05/0.9934, allocations: 0 / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.455e-05/0.9935, allocations: 5.516 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.056e-05/0.9936, allocations: 15.17 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003412/0.9939, allocations: 55.2 kB / 1.09 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.9941, allocations: 69.75 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.9942, allocations: 22.47 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.173e-05/0.9943, allocations: 27.12 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.103e-05/0.9944, allocations: 31.97 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.9944, allocations: 6.438 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.655e-05/0.9945, allocations: 28.39 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.953e-05/0.9945, allocations: 13.66 kB / 1.09 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.174e-05/0.9946, allocations: 31.75 kB / 1.09 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.9947, allocations: 79.61 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.9948, allocations: 0 / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/0.9948, allocations: 3.938 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.9948, allocations: 1.094 kB / 1.09 GB, free: 4.023 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.0005597/0.9953, allocations: 379.4 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.9954, allocations: 8.562 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.9954, allocations: 13.48 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.625e-05/0.9955, allocations: 173 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.9956, allocations: 7.172 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.9956, allocations: 8.312 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002131/0.9958, allocations: 65.7 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.9958, allocations: 3.938 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.9958, allocations: 1.344 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.9958, allocations: 0 / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.9961, allocations: 47.86 kB / 1.091 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.9969, allocations: 323.8 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.9971, allocations: 54.53 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.9972, allocations: 34.11 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.9972, allocations: 5.188 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.9975, allocations: 81.53 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.144e-06/0.9975, allocations: 3.984 kB / 1.091 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000429/0.9979, allocations: 127.7 kB / 1.091 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.998, allocations: 58.62 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.292e-05/0.9981, allocations: 127.2 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.9981, allocations: 26.48 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.87e-05/0.9981, allocations: 95.88 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.9982, allocations: 20.25 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.359e-05/0.9982, allocations: 34.72 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.096e-05/0.9983, allocations: 318.5 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.9984, allocations: 39.44 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.9985, allocations: 69.88 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.9988, allocations: 106.4 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.9988, allocations: 1.344 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003214/0.9991, allocations: 142.2 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.9991, allocations: 6.75 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.9991, allocations: 1.656 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.9992, allocations: 2.5 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.9993, allocations: 16.73 kB / 1.092 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.9993, allocations: 6.969 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.65e-05/0.9994, allocations: 8.75 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.9994, allocations: 9.734 kB / 1.092 GB, free: 1.996 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.667e-05/0.9995, allocations: 130.3 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.9995, allocations: 6.391 kB / 1.093 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.9996, allocations: 7.422 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.9996, allocations: 5.062 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.9996, allocations: 0 / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.9996, allocations: 1.406 kB / 1.093 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/1, allocations: 387.4 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1, allocations: 1.672 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.521e-05/1, allocations: 7.688 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/1, allocations: 0.7812 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/1, allocations: 0.9375 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/1, allocations: 5.859 kB / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/1, allocations: 0 / 1.093 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/1, allocations: 199.8 kB / 1.093 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/1.001, allocations: 83.59 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/1.001, allocations: 2.188 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/1.001, allocations: 10.11 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/1.001, allocations: 8.969 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/1.001, allocations: 2.703 kB / 1.093 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.686e-05/1.001, allocations: 90.88 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/1.001, allocations: 0.8438 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002744/1.001, allocations: 21.67 kB / 1.093 GB, free: 1.16 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.0001574/1.001, allocations: 104.1 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003143/1.002, allocations: 74.86 kB / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.002, allocations: 0 / 1.094 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001303/1.002, allocations: 47.42 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/1.002, allocations: 7.859 kB / 1.094 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004659/1.002, allocations: 166.7 kB / 1.094 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/1.003, allocations: 0.6902 MB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.606e-05/1.003, allocations: 5.656 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.25e-05/1.003, allocations: 16.62 kB / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/1.003, allocations: 0 / 1.094 GB, free: 188 kB / 0.8575 GB Notification: Performance of Templates: time 0.004282/1.007, allocations: 0.9833 MB / 1.095 GB, free: 100 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/jenkins/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,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start