Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001821/0.001821, allocations: 108 kB / 15.61 MB, free: 152 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.002106/0.002107, allocations: 193.5 kB / 16.53 MB, free: 6.664 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.536/1.536, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.842/2.842, allocations: 437 MB / 0.7104 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 71.89 kB / 0.8693 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7591/0.7612, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002296/0.7635, allocations: 0.7538 MB / 1.018 GB, free: 1.93 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001519/0.765, allocations: 1.074 MB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.176e-05/0.7651, allocations: 0 / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.763e-05/0.7652, allocations: 3.938 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.488e-05/0.7652, allocations: 11.88 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.7656, allocations: 59.81 kB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.7657, allocations: 63.84 kB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.7658, allocations: 24.16 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.849e-05/0.7659, allocations: 35.84 kB / 1.019 GB, free: 0.6406 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.316e-05/0.766, allocations: 31.91 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.766, allocations: 4 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.177e-05/0.7661, allocations: 12 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 3.01e-05/0.7662, allocations: 19.92 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.981e-05/0.7662, allocations: 35.84 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.7664, allocations: 75.75 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.7664, allocations: 0 / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7664, allocations: 3.938 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.7664, allocations: 0 / 1.019 GB, free: 472 kB / 0.7637 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.0006436/0.7671, allocations: 389.3 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7671, allocations: 8.031 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.7672, allocations: 4.938 kB / 1.02 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.7674, allocations: 172.2 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.7674, allocations: 20.34 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.7674, allocations: 12.31 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.7676, allocations: 66.17 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.7677, allocations: 3.938 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.7677, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.7677, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.7679, allocations: 43.95 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006896/0.7686, allocations: 328.6 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.7688, allocations: 58.58 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.7689, allocations: 28.97 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.7689, allocations: 8 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.7692, allocations: 79.34 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.7692, allocations: 0 / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004817/0.7697, allocations: 129.5 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.135e-05/0.7698, allocations: 55.41 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.7699, allocations: 133.7 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.7699, allocations: 25.7 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.861e-05/0.77, allocations: 92.05 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.7701, allocations: 15.81 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.7701, allocations: 29.7 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.7703, allocations: 326.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.7704, allocations: 31.97 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.7706, allocations: 73.97 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.7709, allocations: 113.8 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.7709, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004075/0.7713, allocations: 129.5 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.7713, allocations: 8 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.7713, allocations: 3.938 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.7714, allocations: 4 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.7715, allocations: 19.92 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.7715, allocations: 0 / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.207e-05/0.7716, allocations: 20.05 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.7717, allocations: 8 kB / 1.022 GB, free: 13.8 MB / 0.7794 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.0001347/0.7718, allocations: 121.8 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.661e-05/0.7718, allocations: 7.906 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.7719, allocations: 8.359 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.7719, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.7719, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.7719, allocations: 3.938 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005516/0.7725, allocations: 370.5 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7725, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/0.7725, allocations: 4 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.7726, allocations: 3.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.128e-06/0.7726, allocations: 3.938 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.7726, allocations: 3.938 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.7726, allocations: 4 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.7729, allocations: 203.4 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.882e-05/0.773, allocations: 85 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.773, allocations: 4 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.7731, allocations: 15.88 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.7732, allocations: 7.969 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.7732, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002554/0.7734, allocations: 91.27 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7734, allocations: 4 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002695/0.7737, allocations: 16 kB / 1.023 GB, free: 12.75 MB / 0.7794 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.0002537/0.774, allocations: 111.2 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.7743, allocations: 71.89 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.7743, allocations: 4.438 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.7744, allocations: 39.97 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002947/0.7747, allocations: 8.875 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006176/0.7754, allocations: 162.2 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.7759, allocations: 0.6924 MB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.27e-05/0.7759, allocations: 7.984 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.724e-05/0.776, allocations: 11.44 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of SimCode: time 1.9e-07/0.776, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of Templates: time 0.00502/0.781, allocations: 0.9742 MB / 1.025 GB, free: 10.66 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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