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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006784/0.006784, allocations: 109.3 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.001369/0.001369, allocations: 200.2 kB / 16.68 MB, free: 5.938 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.496/1.496, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 63.91 kB / 1.054 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.159/1.16, allocations: 157.4 MB / 1.208 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.00298/1.164, allocations: 0.7529 MB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001933/1.165, allocations: 1.065 MB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.922e-05/1.166, allocations: 0 / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.397e-05/1.166, allocations: 3.938 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001041/1.166, allocations: 15.84 kB / 1.21 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/1.166, allocations: 55.84 kB / 1.21 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/1.167, allocations: 71.77 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/1.167, allocations: 28.16 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/1.167, allocations: 23.92 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.948e-05/1.167, allocations: 39.83 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/1.167, allocations: 4 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.074e-05/1.167, allocations: 23.92 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.947e-05/1.167, allocations: 15.92 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.606e-05/1.167, allocations: 31.86 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/1.167, allocations: 75.75 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/1.167, allocations: 0 / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.104e-06/1.167, allocations: 7.938 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.701e-06/1.167, allocations: 0 / 1.21 GB, free: 11.51 MB / 0.9356 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.0006687/1.168, allocations: 373.1 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/1.168, allocations: 12.03 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.687e-05/1.168, allocations: 12.83 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/1.168, allocations: 180.2 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/1.168, allocations: 384 / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.798e-05/1.168, allocations: 8.375 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002315/1.169, allocations: 74.16 kB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/1.169, allocations: 3.938 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/1.169, allocations: 0 / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/1.169, allocations: 4 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/1.169, allocations: 43.95 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007313/1.17, allocations: 320.7 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/1.17, allocations: 50.55 kB / 1.211 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/1.17, allocations: 36.95 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/1.17, allocations: 0 / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/1.17, allocations: 87.31 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/1.17, allocations: 0 / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004579/1.171, allocations: 121.6 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/1.171, allocations: 63.39 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/1.171, allocations: 121.7 kB / 1.211 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/1.171, allocations: 29.7 kB / 1.211 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/1.171, allocations: 92.12 kB / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/1.171, allocations: 15.81 kB / 1.211 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/1.171, allocations: 33.7 kB / 1.212 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000124/1.171, allocations: 322.8 kB / 1.212 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/1.171, allocations: 27.97 kB / 1.212 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/1.171, allocations: 77.92 kB / 1.212 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002397/1.172, allocations: 105.9 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/1.172, allocations: 4 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000339/1.172, allocations: 137.3 kB / 1.212 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/1.172, allocations: 4 kB / 1.212 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/1.172, allocations: 4.219 kB / 1.212 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/1.172, allocations: 4 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/1.172, allocations: 19.97 kB / 1.212 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/1.172, allocations: 7.938 kB / 1.212 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.586e-05/1.172, allocations: 7.938 kB / 1.212 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/1.172, allocations: 7.984 kB / 1.212 GB, free: 8.883 MB / 0.9356 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.0001127/1.172, allocations: 129.7 kB / 1.212 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/1.172, allocations: 3.906 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/1.173, allocations: 16.38 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/1.173, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.173, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.173, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005155/1.173, allocations: 382.3 kB / 1.213 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/1.173, allocations: 0 / 1.213 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-05/1.173, allocations: 7.984 kB / 1.213 GB, free: 8.285 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/1.173, allocations: 4 kB / 1.213 GB, free: 8.281 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/1.173, allocations: 4 kB / 1.213 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/1.173, allocations: 3.938 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.173, allocations: 0 / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/1.174, allocations: 195.5 kB / 1.213 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.247e-05/1.174, allocations: 88.95 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/1.174, allocations: 0 / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/1.174, allocations: 19.92 kB / 1.213 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.995e-05/1.174, allocations: 4 kB / 1.213 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/1.174, allocations: 3.984 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.306e-05/1.174, allocations: 91.88 kB / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/1.174, allocations: 4 kB / 1.213 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002944/1.174, allocations: 19.98 kB / 1.213 GB, free: 7.82 MB / 0.9356 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.0002269/1.174, allocations: 99.25 kB / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000309/1.175, allocations: 83.86 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.175, allocations: 7.938 kB / 1.213 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/1.175, allocations: 35.92 kB / 1.213 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/1.175, allocations: 9.859 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004585/1.176, allocations: 174.4 kB / 1.214 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/1.176, allocations: 0.6885 MB / 1.214 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.174e-05/1.176, allocations: 4 kB / 1.214 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/1.176, allocations: 11.44 kB / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of SimCode: time 6.41e-07/1.176, allocations: 0 / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of Templates: time 0.004372/1.18, allocations: 1.012 MB / 1.215 GB, free: 5.684 MB / 0.9356 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=480 -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/jenkins/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: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