Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,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.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,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.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002085/0.002085, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.479/1.479, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.674/2.674, allocations: 390.2 MB / 0.6642 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 71.89 kB / 0.8119 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8041/0.8054, allocations: 140.4 MB / 0.949 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002236/0.8077, allocations: 0.8028 MB / 0.9497 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.8092, allocations: 1.075 MB / 0.9508 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.195e-05/0.8093, allocations: 1.375 kB / 0.9508 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.8094, allocations: 4 kB / 0.9508 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.801e-05/0.8095, allocations: 9.297 kB / 0.9508 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.8098, allocations: 44.28 kB / 0.9508 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.8099, allocations: 68.66 kB / 0.9509 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.81, allocations: 15.05 kB / 0.9509 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.569e-05/0.8101, allocations: 30.84 kB / 0.951 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.303e-05/0.8102, allocations: 33.47 kB / 0.951 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.8102, allocations: 4.125 kB / 0.951 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.8103, allocations: 21.61 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.407e-05/0.8103, allocations: 18.69 kB / 0.951 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.084e-05/0.8104, allocations: 23.41 kB / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.8105, allocations: 76.48 kB / 0.9511 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.8105, allocations: 1.375 kB / 0.9511 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.91e-07/0.8105, allocations: 0 / 0.9511 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.675e-06/0.8106, allocations: 0 / 0.9511 GB, free: 7.426 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.0005282/0.8111, allocations: 371.8 kB / 0.9515 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.8111, allocations: 9.125 kB / 0.9515 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.455e-05/0.8112, allocations: 12.28 kB / 0.9515 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.8113, allocations: 179.9 kB / 0.9517 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.8113, allocations: 6.5 kB / 0.9517 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.72e-05/0.8113, allocations: 8.531 kB / 0.9517 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.8115, allocations: 66 kB / 0.9517 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.8116, allocations: 3.938 kB / 0.9518 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.8116, allocations: 5.188 kB / 0.9518 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.8116, allocations: 1.344 kB / 0.9518 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.8118, allocations: 48.11 kB / 0.9518 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005914/0.8124, allocations: 320.8 kB / 0.9521 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.8125, allocations: 60.05 kB / 0.9522 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.192e-05/0.8126, allocations: 26.91 kB / 0.9522 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.8127, allocations: 5.359 kB / 0.9522 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.8129, allocations: 85.8 kB / 0.9523 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.754e-06/0.8129, allocations: 5.359 kB / 0.9523 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000408/0.8133, allocations: 131.3 kB / 0.9524 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.8133, allocations: 54.06 kB / 0.9525 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.155e-05/0.8134, allocations: 120.4 kB / 0.9526 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.8134, allocations: 31.14 kB / 0.9526 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/0.8135, allocations: 95 kB / 0.9527 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.8135, allocations: 14.33 kB / 0.9527 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.664e-05/0.8136, allocations: 27.39 kB / 0.9527 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.328e-05/0.8136, allocations: 324.3 kB / 0.953 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.8137, allocations: 35.28 kB / 0.9531 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.8139, allocations: 70.17 kB / 0.9531 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.8141, allocations: 107.7 kB / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.8141, allocations: 0 / 0.9532 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002941/0.8144, allocations: 133.5 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.8144, allocations: 5.938 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.8144, allocations: 2.781 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.8144, allocations: 1.469 kB / 0.9534 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.8146, allocations: 20.78 kB / 0.9534 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.8146, allocations: 6.625 kB / 0.9534 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.8147, allocations: 16.81 kB / 0.9534 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.8147, allocations: 8.891 kB / 0.9534 GB, free: 5.227 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 6.232e-05/0.8148, allocations: 123.1 kB / 0.9536 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.8148, allocations: 6.656 kB / 0.9536 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.834e-05/0.8148, allocations: 9.75 kB / 0.9536 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.8148, allocations: 1.188 kB / 0.9536 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.8148, allocations: 7.875 kB / 0.9536 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.8148, allocations: 1.375 kB / 0.9536 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004044/0.8152, allocations: 376.5 kB / 0.9539 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.8153, allocations: 0 / 0.9539 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.383e-05/0.8153, allocations: 9.609 kB / 0.9539 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.8153, allocations: 1.094 kB / 0.9539 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.8153, allocations: 5.031 kB / 0.954 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.8153, allocations: 3.938 kB / 0.954 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.8154, allocations: 5.125 kB / 0.954 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.8156, allocations: 204.6 kB / 0.9542 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.936e-05/0.8156, allocations: 82.3 kB / 0.9542 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.8157, allocations: 1.656 kB / 0.9542 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-05/0.8157, allocations: 11.7 kB / 0.9542 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.8158, allocations: 2.094 kB / 0.9543 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.8158, allocations: 14.48 kB / 0.9543 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.609e-05/0.8158, allocations: 89.44 kB / 0.9543 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8158, allocations: 0 / 0.9543 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002547/0.8161, allocations: 17.64 kB / 0.9544 GB, free: 4.328 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.0001461/0.8163, allocations: 104 kB / 0.9545 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002711/0.8165, allocations: 80.34 kB / 0.9545 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.8165, allocations: 1.531 kB / 0.9545 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.8167, allocations: 31.39 kB / 0.9546 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.8169, allocations: 18.2 kB / 0.9546 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003344/0.8173, allocations: 189.9 kB / 0.9548 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.8174, allocations: 0.6893 MB / 0.9554 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.576e-05/0.8175, allocations: 8.938 kB / 0.9555 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.994e-05/0.8175, allocations: 11.28 kB / 0.9555 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8175, allocations: 0 / 0.9555 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of Templates: time 0.003177/0.8207, allocations: 0.8713 MB / 0.9563 GB, free: 2.852 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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