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.001128/0.001128, allocations: 108 kB / 15.6 MB, free: 132 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.001154/0.001154, allocations: 192.5 kB / 16.53 MB, free: 6.391 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.746/2.746, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 67.89 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8382/0.8396, allocations: 140.4 MB / 0.9496 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime): time 0.002166/0.8418, allocations: 0.7499 MB / 0.9503 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001466/0.8433, allocations: 1.068 MB / 0.9514 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.941e-05/0.8434, allocations: 0 / 0.9514 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.39e-05/0.8434, allocations: 9.25 kB / 0.9514 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.661e-05/0.8435, allocations: 13.41 kB / 0.9514 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.8439, allocations: 56.27 kB / 0.9515 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.844, allocations: 72.59 kB / 0.9515 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.8441, allocations: 20.33 kB / 0.9516 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.8442, allocations: 26.83 kB / 0.9516 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.727e-05/0.8443, allocations: 33.28 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.8443, allocations: 6.219 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.8444, allocations: 16.58 kB / 0.9516 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.494e-05/0.8444, allocations: 18.17 kB / 0.9516 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.237e-05/0.8445, allocations: 36.16 kB / 0.9517 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.8447, allocations: 76.75 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.8447, allocations: 1.406 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8447, allocations: 0 / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.8447, allocations: 0 / 0.9518 GB, free: 7.383 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.0005662/0.8453, allocations: 379.8 kB / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.8453, allocations: 9.031 kB / 0.9521 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.827e-05/0.8454, allocations: 8.688 kB / 0.9521 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.8455, allocations: 180.4 kB / 0.9523 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.8455, allocations: 1.531 kB / 0.9523 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.8455, allocations: 8.375 kB / 0.9523 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002007/0.8457, allocations: 66.38 kB / 0.9524 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.8458, allocations: 3.938 kB / 0.9524 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.8458, allocations: 1.406 kB / 0.9524 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.8458, allocations: 3.938 kB / 0.9524 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.846, allocations: 48.17 kB / 0.9524 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006491/0.8466, allocations: 333.9 kB / 0.9528 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.8468, allocations: 51.55 kB / 0.9528 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.964e-05/0.8469, allocations: 31.88 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.847, allocations: 9.844 kB / 0.9528 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.8472, allocations: 77.17 kB / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.685e-06/0.8472, allocations: 0 / 0.9529 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004211/0.8477, allocations: 128.4 kB / 0.953 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.419e-05/0.8477, allocations: 57.59 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.68e-05/0.8478, allocations: 124 kB / 0.9532 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.8478, allocations: 27.02 kB / 0.9532 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.543e-05/0.8478, allocations: 91.58 kB / 0.9533 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.8479, allocations: 14.84 kB / 0.9533 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.554e-05/0.8479, allocations: 30.42 kB / 0.9534 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.047e-05/0.848, allocations: 324.2 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.8481, allocations: 31.84 kB / 0.9537 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.8482, allocations: 75.09 kB / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.8485, allocations: 107.8 kB / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.8485, allocations: 0 / 0.9539 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002919/0.8488, allocations: 141.3 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.8488, allocations: 6.625 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.8488, allocations: 1.469 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.8488, allocations: 1.469 kB / 0.954 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.849, allocations: 16.92 kB / 0.954 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.849, allocations: 6.719 kB / 0.954 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.019e-05/0.8491, allocations: 17.2 kB / 0.9541 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.8491, allocations: 8.719 kB / 0.9541 GB, free: 5.18 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 7.106e-05/0.8492, allocations: 125.2 kB / 0.9542 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.8492, allocations: 9.172 kB / 0.9542 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.8492, allocations: 9.734 kB / 0.9542 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.8492, allocations: 1.75 kB / 0.9542 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.8492, allocations: 0 / 0.9542 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.8492, allocations: 1.438 kB / 0.9542 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004373/0.8497, allocations: 379.8 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8497, allocations: 1.406 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.05e-05/0.8497, allocations: 5.438 kB / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.8497, allocations: 0 / 0.9546 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.8498, allocations: 4.766 kB / 0.9546 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.8498, allocations: 5.188 kB / 0.9546 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.8498, allocations: 0 / 0.9546 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.85, allocations: 209.8 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.8501, allocations: 83.17 kB / 0.9549 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.172e-05/0.8501, allocations: 5.141 kB / 0.9549 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.8502, allocations: 16.28 kB / 0.9549 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.54e-05/0.8503, allocations: 6.234 kB / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.8503, allocations: 2.219 kB / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.593e-05/0.8503, allocations: 100.4 kB / 0.955 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8503, allocations: 0 / 0.955 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002575/0.8506, allocations: 17.19 kB / 0.955 GB, free: 4.273 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.0001934/0.8508, allocations: 106.4 kB / 0.9551 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003059/0.8511, allocations: 80.94 kB / 0.9552 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.8511, allocations: 448 / 0.9552 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.8512, allocations: 40.31 kB / 0.9552 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002781/0.8515, allocations: 6.031 kB / 0.9552 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003482/0.8519, allocations: 160.2 kB / 0.9554 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.852, allocations: 0.6965 MB / 0.9561 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.742e-05/0.8521, allocations: 13.2 kB / 0.9561 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.825e-05/0.8521, allocations: 10.69 kB / 0.9561 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of SimCode: time 6.41e-07/0.8521, allocations: 0 / 0.9561 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of Templates: time 0.003469/0.8556, allocations: 0.9781 MB / 0.957 GB, free: 2.789 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/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