Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.SampleTrigger,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.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_10_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.000994/0.000994, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007594/0.007594, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.67/1.67, allocations: 223.3 MB / 240.3 MB, free: 5.355 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 3.004/3.004, allocations: 437.8 MB / 0.7121 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004903/0.0004904, allocations: 8 kB / 0.8729 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9179/0.9184, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001284/0.9198, allocations: 485.1 kB / 1.024 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001715/0.9215, allocations: 1.058 MB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.09e-05/0.9216, allocations: 0 / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.408e-05/0.9216, allocations: 7.938 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.939e-05/0.9217, allocations: 15.91 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.922, allocations: 35.97 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.9221, allocations: 67.78 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.9222, allocations: 24.16 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.002e-05/0.9223, allocations: 23.86 kB / 1.025 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.501e-05/0.9224, allocations: 31.89 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.9224, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.079e-05/0.9225, allocations: 19.94 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.9225, allocations: 11.92 kB / 1.025 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.473e-05/0.9226, allocations: 53.55 kB / 1.025 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.9227, allocations: 79.73 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.9228, allocations: 0 / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.482e-06/0.9228, allocations: 0 / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.9228, allocations: 4 kB / 1.025 GB, free: 13.93 MB / 0.7794 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.0006284/0.9234, allocations: 365.3 kB / 1.025 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.9235, allocations: 11.98 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.367e-05/0.9235, allocations: 12.84 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.9237, allocations: 180.2 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.9237, allocations: 12.3 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.9238, allocations: 8.375 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.924, allocations: 70.23 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.924, allocations: 3.938 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.924, allocations: 0 / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.924, allocations: 4 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.9243, allocations: 59.89 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007465/0.925, allocations: 332.6 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.9252, allocations: 66.58 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.9254, allocations: 32.97 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.9254, allocations: 4 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.9256, allocations: 79.38 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.733e-06/0.9257, allocations: 4 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004835/0.9262, allocations: 141.6 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.9262, allocations: 59.34 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.9264, allocations: 125.7 kB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.9264, allocations: 25.7 kB / 1.026 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.9265, allocations: 88.14 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.9265, allocations: 19.8 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.9265, allocations: 21.72 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.9267, allocations: 322.8 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.9268, allocations: 27.98 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.927, allocations: 81.98 kB / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.9273, allocations: 121.8 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.9273, allocations: 0 / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000365/0.9277, allocations: 149.3 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.9277, allocations: 8 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.9277, allocations: 3.938 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.9278, allocations: 4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.9279, allocations: 20.2 kB / 1.027 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.9279, allocations: 7.938 kB / 1.027 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.809e-05/0.928, allocations: 19.92 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.9281, allocations: 4 kB / 1.027 GB, free: 11.22 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.0001326/0.9282, allocations: 119.3 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.9282, allocations: 7.906 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.9283, allocations: 8.375 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.9283, allocations: 8 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.9283, allocations: 3.984 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.9283, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005795/0.9289, allocations: 382.3 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.9289, allocations: 4 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.743e-05/0.929, allocations: 11.98 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.929, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.929, allocations: 4 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.485e-05/0.929, allocations: 3.938 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.929, allocations: 0 / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003441/0.9294, allocations: 219.4 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.957e-05/0.9295, allocations: 81.11 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.9295, allocations: 0 / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.423e-05/0.9296, allocations: 19.92 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.9296, allocations: 11.97 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.9296, allocations: 4 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.637e-05/0.9297, allocations: 91.92 kB / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9297, allocations: 0 / 1.028 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002693/0.93, allocations: 23.91 kB / 1.028 GB, free: 10.13 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.0002153/0.9302, allocations: 103.8 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003203/0.9305, allocations: 95.81 kB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9306, allocations: 0 / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.9307, allocations: 40.44 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.931, allocations: 18.42 kB / 1.029 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000466/0.9315, allocations: 173.4 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.9319, allocations: 0.6887 MB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.033e-05/0.9319, allocations: 8 kB / 1.029 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.279e-05/0.932, allocations: 15.38 kB / 1.029 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.932, allocations: 0 / 1.029 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of Templates: time 0.004015/0.936, allocations: 0.8641 MB / 1.03 GB, free: 8.09 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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