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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001137/0.001137, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.393/1.393, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.2 MB / 0.6649 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 67.91 kB / 0.8126 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6892/0.6906, allocations: 140.3 MB / 0.9496 GB, free: 9.398 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.001876/0.6925, allocations: 0.8147 MB / 0.9504 GB, free: 8.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.6937, allocations: 1.071 MB / 0.9514 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.631e-05/0.6937, allocations: 0 / 0.9514 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.093e-05/0.6938, allocations: 5.359 kB / 0.9515 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.817e-05/0.6939, allocations: 9.25 kB / 0.9515 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002329/0.6941, allocations: 47.08 kB / 0.9515 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.432e-05/0.6942, allocations: 72.03 kB / 0.9516 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.6943, allocations: 14.92 kB / 0.9516 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.41e-05/0.6944, allocations: 27.73 kB / 0.9516 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.6945, allocations: 32.94 kB / 0.9516 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.6946, allocations: 4 kB / 0.9517 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.6947, allocations: 16.83 kB / 0.9517 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.639e-05/0.6947, allocations: 19.09 kB / 0.9517 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.858e-05/0.6948, allocations: 32.08 kB / 0.9517 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.6949, allocations: 52.08 kB / 0.9518 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.6949, allocations: 1.344 kB / 0.9518 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6949, allocations: 0 / 0.9518 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.6949, allocations: 0 / 0.9518 GB, free: 7.684 MB / 0.7169 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.0006671/0.6956, allocations: 379.6 kB / 0.9521 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.6957, allocations: 9.375 kB / 0.9521 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.6957, allocations: 8.812 kB / 0.9521 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.6958, allocations: 176 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.6959, allocations: 6.875 kB / 0.9523 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.6959, allocations: 3.938 kB / 0.9523 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.6961, allocations: 69.84 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.6961, allocations: 7.938 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.6962, allocations: 5.25 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.6962, allocations: 1.25 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.6964, allocations: 44.02 kB / 0.9524 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007067/0.6971, allocations: 325 kB / 0.9528 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.6973, allocations: 55.61 kB / 0.9528 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.6974, allocations: 32.05 kB / 0.9528 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.6974, allocations: 4.031 kB / 0.9528 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.6977, allocations: 79.84 kB / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.6977, allocations: 0 / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004508/0.6981, allocations: 131 kB / 0.953 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.6982, allocations: 54.47 kB / 0.9531 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.6983, allocations: 119.6 kB / 0.9532 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.6983, allocations: 31.05 kB / 0.9532 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/0.6984, allocations: 94.66 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.6984, allocations: 18.44 kB / 0.9534 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.6985, allocations: 27.48 kB / 0.9534 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.6985, allocations: 325.2 kB / 0.9537 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.6987, allocations: 30.98 kB / 0.9537 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.6988, allocations: 75.11 kB / 0.9538 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.699, allocations: 107.3 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.699, allocations: 0 / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003198/0.6993, allocations: 129.7 kB / 0.954 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.6994, allocations: 9.641 kB / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.6994, allocations: 6.188 kB / 0.954 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.6994, allocations: 9.594 kB / 0.954 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.6996, allocations: 16.8 kB / 0.9541 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.6996, allocations: 6.312 kB / 0.9541 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.173e-05/0.6997, allocations: 20.92 kB / 0.9541 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.6997, allocations: 5 kB / 0.9541 GB, free: 5.48 MB / 0.7169 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 9.103e-05/0.6998, allocations: 120.2 kB / 0.9542 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.6998, allocations: 7.156 kB / 0.9542 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.6999, allocations: 13.62 kB / 0.9542 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.6999, allocations: 1.062 kB / 0.9542 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6999, allocations: 0 / 0.9542 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.6999, allocations: 5.234 kB / 0.9542 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003849/0.7003, allocations: 368.7 kB / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.7003, allocations: 0 / 0.9546 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.991e-05/0.7003, allocations: 9.453 kB / 0.9546 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.7003, allocations: 5.219 kB / 0.9546 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.7004, allocations: 5.25 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.7004, allocations: 3.938 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.7004, allocations: 0 / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.7006, allocations: 210 kB / 0.9548 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.346e-05/0.7007, allocations: 83.89 kB / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.7007, allocations: 0 / 0.9549 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.177e-05/0.7008, allocations: 15.3 kB / 0.9549 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.7008, allocations: 7.203 kB / 0.9549 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-06/0.7008, allocations: 5.438 kB / 0.9549 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.68e-05/0.7009, allocations: 92.7 kB / 0.955 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7009, allocations: 0 / 0.955 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002655/0.7011, allocations: 13.16 kB / 0.955 GB, free: 4.59 MB / 0.7169 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.0001667/0.7013, allocations: 107.3 kB / 0.9551 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002625/0.7016, allocations: 81.38 kB / 0.9552 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.7016, allocations: 0 / 0.9552 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.7017, allocations: 36.34 kB / 0.9552 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.702, allocations: 10.62 kB / 0.9552 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003452/0.7023, allocations: 212.2 kB / 0.9554 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/0.7025, allocations: 0.6891 MB / 0.9561 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.7025, allocations: 10.91 kB / 0.9561 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.7025, allocations: 1.094 kB / 0.9561 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of Templates: time 0.002652/0.7052, allocations: 1.041 MB / 0.9571 GB, free: 3 MB / 0.7169 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